mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-21 07:35:08 +00:00
Read variable font data from WOFF and WOFF2 files in font selection
The C font selection code read font tables only from sfnt files, so variable fonts in WOFF/WOFF2 files had no variable data, causing wrong faces to be selected, for example, for FiraCode-VF.woff2. Read WOFF tables using zlib and WOFF2 tables using brotli, decompressing only the prefix of the stream containing the needed tables, in fixed size chunks so that memory use does not depend on possibly corrupt offsets. kitty now links against libbrotlidec on platforms other than macOS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
717825cc98
commit
964adbcd06
4 changed files with 274 additions and 14 deletions
2
.github/workflows/ci.py
vendored
2
.github/workflows/ci.py
vendored
|
|
@ -150,7 +150,7 @@ def install_deps() -> None:
|
|||
run(
|
||||
'sudo apt-get install -y --fix-missing libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates'
|
||||
' libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev zsh'
|
||||
' libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev libxxhash-dev uuid-dev'
|
||||
' libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev libxxhash-dev uuid-dev libbrotli-dev'
|
||||
' libsimde-dev libsystemd-dev libcairo2-dev zsh bash dash systemd-coredump gdb'
|
||||
' libwayland-dev wayland-protocols glslang-tools'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue