Commit Graph

14151 Commits

Author SHA1 Message Date
Kovid Goyal
a164c73389 ... 2024-06-22 11:20:53 +05:30
Kovid Goyal
3e430e1a70 Render font feature list in UI 2024-06-22 11:20:53 +05:30
Kovid Goyal
12314cc33f Add tests to validate feature-from-spec 2024-06-22 11:20:53 +05:30
Kovid Goyal
c3bba2e926 work on passing font features via font specs 2024-06-22 11:20:51 +05:30
Kovid Goyal
a4f67b7424 Get feature human readable names 2024-06-22 11:16:42 +05:30
Kovid Goyal
b217c9acde List of all known OpenType font features 2024-06-22 11:16:42 +05:30
Kovid Goyal
23e777ea9e Code to read features from GSUB/GPOS tables 2024-06-22 11:16:42 +05:30
Kovid Goyal
ecb106e92c revert simde bump 2024-06-22 11:16:42 +05:30
Kovid Goyal
23deaae5e7 more tests 2024-06-22 11:16:42 +05:30
Kovid Goyal
bc6230d90c Centralize FontSpec related code 2024-06-22 11:16:42 +05:30
Kovid Goyal
03f35812eb Fix O(n^2) algorithm 2024-06-22 11:16:42 +05:30
Kovid Goyal
7c0007c1bd Ensure bold face is at least as heavy as regular face when auto selecting 2024-06-22 11:16:42 +05:30
Kovid Goyal
d2d2f6c503 Improve auto selection of variable faces 2024-06-22 11:16:42 +05:30
Kovid Goyal
69fb2e4231 Handle variable fonts like cascadia code that dont have a postfix variation prefix name for some of their faces 2024-06-22 11:16:42 +05:30
Kovid Goyal
94d056ed4f Wire up applying of font config 2024-06-22 11:16:41 +05:30
Kovid Goyal
726f62b948 Refactor config patching code to make it re-useable 2024-06-22 11:16:41 +05:30
Kovid Goyal
7e15839141 More work on choose_fonts 2024-06-22 11:16:41 +05:30
Kovid Goyal
13a6ff25a2 Render preview synchronously to avoid flashing 2024-06-22 11:16:41 +05:30
Kovid Goyal
e050557db7 Get axis clicking working 2024-06-22 11:16:41 +05:30
Kovid Goyal
3e2b3a89ce more work on axis fine tuning 2024-06-22 11:16:41 +05:30
Kovid Goyal
81c30cc5fa Render variable axes 2024-06-22 11:16:41 +05:30
Kovid Goyal
73a6668b17 Generalize code to get variable spec 2024-06-22 11:16:41 +05:30
Kovid Goyal
f8e2dc1eca More work on face fine tune UI 2024-06-22 11:16:41 +05:30
Kovid Goyal
32b8077c89 Make debug printing in backend.py more convenient 2024-06-22 11:16:41 +05:30
Kovid Goyal
b90fede2c1 Fix medium face selection when more than family specified 2024-06-22 11:16:41 +05:30
Kovid Goyal
87d1a97486 Dont log an error when the default famil "monospace" is not found 2024-06-22 11:16:41 +05:30
Kovid Goyal
98450a0605 More work on face fine tuning 2024-06-22 11:16:41 +05:30
Kovid Goyal
29377db94c CoreText: When finding medium face for a family prefer variable font if available 2024-06-22 11:16:41 +05:30
Kovid Goyal
8d8c2d7170 Skip test o older freetype 2024-06-22 11:16:41 +05:30
Kovid Goyal
5be4f7b566 Add a test for dejavu sans mono 2024-06-22 11:16:41 +05:30
Kovid Goyal
ce74706c95 Install needed fonts in CI 2024-06-22 11:16:40 +05:30
Kovid Goyal
8f8da2d2c6 IBM Plex Mono workaround is needed only under fontconfig 2024-06-22 11:16:40 +05:30
Kovid Goyal
540e11fa01 DRYer 2024-06-22 11:16:40 +05:30
Kovid Goyal
a230eb87a1 Get font selection for the cascadia code variable fonts working 2024-06-22 11:16:40 +05:30
Kovid Goyal
4ce7da044f Better scoring for malformed fonts with weird weight ranges 2024-06-22 11:16:40 +05:30
Kovid Goyal
ceccacafa8 Refactor scoring 2024-06-22 11:16:40 +05:30
Kovid Goyal
df80da7cb5 Add more font selection tests 2024-06-22 11:16:40 +05:30
Kovid Goyal
08bffde4ad CoreText: Fix selection of font file with multi-file variant font
Also prefer semibold and use similar scorer as fontconfig
2024-06-22 11:16:40 +05:30
Kovid Goyal
983bf134a1 fontconfig: Prefer semi-bold as bold weight even for system selection 2024-06-22 11:16:40 +05:30
Kovid Goyal
e25c61f781 fontconfig: Lift axes spec to named style 2024-06-22 11:16:40 +05:30
Kovid Goyal
d6026c377b Test for font selection 2024-06-22 11:16:40 +05:30
Kovid Goyal
a766a95de6 ... 2024-06-22 11:16:40 +05:30
Kovid Goyal
36d906d4f5 DRYer 2024-06-22 11:16:40 +05:30
Kovid Goyal
881b72fea7 Fix medium face selection via fontconfig when family has only variable font files 2024-06-22 11:16:40 +05:30
Kovid Goyal
d6a7d4a8a1 Fix face sample rendering 2024-06-22 11:16:40 +05:30
Kovid Goyal
db092eb88d Work on face panel 2024-06-22 11:16:40 +05:30
Kovid Goyal
33df5355a6 Start work on face panel 2024-06-22 11:16:39 +05:30
Kovid Goyal
99e279cbe9 ... 2024-06-22 11:16:39 +05:30
Kovid Goyal
82ffb376b2 Use PSname in faces preview panel 2024-06-22 11:16:39 +05:30
Kovid Goyal
fc72f4961e Transmit metadata about rendered samples 2024-06-22 11:16:39 +05:30