kitty/kitty_tests
Kovid Goyal 6c88ea3e37
Select fonts in C, in a thread, during startup
Font selection was done in Python on the main thread, taking ~15ms at
startup on Linux and much more on macOS, where all installed fonts were
listed from CoreText and converted to Python, taking ~165ms.

Port the selection algorithm to pure C in font-select.c, with platform
backends in fontconfig.c and core_text.m, so that it can run in a thread
started by set_font_family(). The results are used when the first font
group is created, typically when the first OS Window is created. The
data for variable fonts is read from the font tables by C code that does
not use Python or FreeType.

The fontconfig backend lists all monospace fonts once and filters them
in C, as listing fonts is dominated by scanning all fonts. The CoreText
backend queries only the needed font families and PostScript names
instead of all installed fonts.

On Linux, the selected fonts are identical to those selected by the
previous Python implementation for ~1400 font specifications, including
variable fonts. The CoreText backend has not yet been compiled or tested.
2026-11-19 07:35:32 +05:30
..
__init__.py
atexit.py
base.py More detail for on_quit events and a new on_cwd change event 2026-11-12 11:29:08 +05:30
CascadiaCode-Regular.otf
check_build.py Add a Metal GPU driver and an MSL shader target 2026-11-19 07:35:31 +05:30
child.py Fix test_launch_wrapper_invalid_shell on macOS 2026-11-18 20:44:44 +05:30
choose_files.py
clipboard.py clipboard: Replace the MIME list PTY test with a Go unit test 2026-10-26 07:50:36 +05:30
ComfyCode-Regular.ttf
command_palette.py
completion.py
crypto.py
datatypes.py Fix PNG dimension validation test on 32-bit platforms 2026-11-09 13:01:06 +03:00
dnd.py dnd: Accept base64 payloads with trailing padding 2026-10-30 18:16:47 +05:30
dnd_kitten.py Cleanup previous PR 2026-10-29 21:41:44 +05:30
docks.py Allow resizing docks 2026-11-13 19:44:03 +05:30
edit_in_kitty.py
file_transmission.py
FiraCode-Medium.otf
fonts.py Select fonts in C, in a thread, during startup 2026-11-19 07:35:32 +05:30
glfw.py
gr.py
GraphemeBreakTest.json
graphics.py Use the coordinate conventions of Vulkan and Metal for the GPU API 2026-11-19 07:35:31 +05:30
hints.py
iosevka-regular.ttf
iterable_arguments.py
keys.py
layout.py Do not import the launch module when there are no watchers 2026-11-19 07:35:32 +05:30
LiberationMono-Regular.ttf
main.py tests: Reuse existing resource enumeration helper 2026-11-06 19:17:39 +08:00
mouse.py Reset link hover pointer when output clears the highlight 2026-10-23 17:02:12 +05:30
multicell.py Fix multiline chars being torn by resize and ED 22 2026-11-13 19:43:59 +05:30
notifications.py Linux: Send kitty's .desktop file name to notification servers for grouping 2026-10-23 08:47:19 +05:30
notify.py
open_actions.py Cleanup previous PR 2026-10-31 17:15:08 +05:30
options.py Add software rendering as a fallback GPU driver 2026-11-19 07:35:31 +05:30
panels.py
parser.py Graphics protocol: Add sub-feature querying 2026-10-25 09:59:12 +05:30
program_status.py
remote_control.py Further harden remote control password processing 2026-11-03 17:36:01 +05:30
resize_edge.py
resize_fraction.py
screen.py Fix crash in Screen.hyperlink_at() with out of bounds coordinates 2026-11-19 07:23:44 +05:30
search_query_parser.py
selection_drag.py Respect mouse mappings for link hover feedback 2026-10-23 05:08:02 +08:00
sessions.py Allow docking windows to the OS window with launch --type=os-window-dock 2026-11-12 12:47:48 +05:30
shell_integration.py Bash integration: Source the system startup files bash was built with 2026-11-07 06:25:36 +05:30
shm.py
single_instance.py
slang.py Bump generated MSL version to that used on macOS 14 2026-11-19 07:35:32 +05:30
ssh.py ssh kitten: Fix remote directories being created world writable 2026-11-10 08:15:26 +05:30
tab_bar.py Allow selecting text drawn in the tab bar outside the tabs 2026-11-15 09:32:37 +05:30
tab_drop.py
tab_workspaces.py
tui.py
twemoji_smiley-cff2_colr_1.otf
utmp.py