Commit Graph

14211 Commits

Author SHA1 Message Date
Kovid Goyal
9782833308
test render function to develop the sample renderer 2024-06-24 07:54:18 +05:30
Kovid Goyal
72257f652d
... 2024-06-24 07:54:18 +05:30
Kovid Goyal
a69d71d416
Render font feature list in UI 2024-06-24 07:54:18 +05:30
Kovid Goyal
57edb412e6
Add tests to validate feature-from-spec 2024-06-24 07:54:18 +05:30
Kovid Goyal
060732b428
work on passing font features via font specs 2024-06-24 07:54:18 +05:30
Kovid Goyal
7e56920fa3
Get feature human readable names 2024-06-24 07:54:18 +05:30
Kovid Goyal
a2a0f3cf41
List of all known OpenType font features 2024-06-24 07:54:18 +05:30
Kovid Goyal
0f76d3e13b
Code to read features from GSUB/GPOS tables 2024-06-24 07:54:18 +05:30
Kovid Goyal
d7702547cf
revert simde bump 2024-06-24 07:54:18 +05:30
Kovid Goyal
10cae2c557
more tests 2024-06-24 07:54:18 +05:30
Kovid Goyal
58c94105a3
Centralize FontSpec related code 2024-06-24 07:54:18 +05:30
Kovid Goyal
c5fd544d25
Fix O(n^2) algorithm 2024-06-24 07:54:17 +05:30
Kovid Goyal
679abf0e84
Ensure bold face is at least as heavy as regular face when auto selecting 2024-06-24 07:54:17 +05:30
Kovid Goyal
d205b147eb
Improve auto selection of variable faces 2024-06-24 07:54:17 +05:30
Kovid Goyal
b017cc0c1e
Handle variable fonts like cascadia code that dont have a postfix variation prefix name for some of their faces 2024-06-24 07:54:17 +05:30
Kovid Goyal
815df1e210
Wire up applying of font config 2024-06-24 07:54:17 +05:30
Kovid Goyal
f15eebec02
Refactor config patching code to make it re-useable 2024-06-24 07:54:17 +05:30
Kovid Goyal
7fafdeef48
More work on choose_fonts 2024-06-24 07:54:17 +05:30
Kovid Goyal
7c42682b01
Render preview synchronously to avoid flashing 2024-06-24 07:54:17 +05:30
Kovid Goyal
345134c7d0
Get axis clicking working 2024-06-24 07:54:17 +05:30
Kovid Goyal
0afc92104d
more work on axis fine tuning 2024-06-24 07:54:17 +05:30
Kovid Goyal
f3a1a1da1c
Render variable axes 2024-06-24 07:54:17 +05:30
Kovid Goyal
b482c1a050
Generalize code to get variable spec 2024-06-24 07:54:17 +05:30
Kovid Goyal
fa2a11310d
More work on face fine tune UI 2024-06-24 07:54:17 +05:30
Kovid Goyal
036d1174c7
Make debug printing in backend.py more convenient 2024-06-24 07:54:17 +05:30
Kovid Goyal
28f2919753
Fix medium face selection when more than family specified 2024-06-24 07:54:17 +05:30
Kovid Goyal
ff89f5187d
Dont log an error when the default famil "monospace" is not found 2024-06-24 07:54:17 +05:30
Kovid Goyal
0028d7f04b
More work on face fine tuning 2024-06-24 07:54:16 +05:30
Kovid Goyal
8ba6d5a296
CoreText: When finding medium face for a family prefer variable font if available 2024-06-24 07:54:16 +05:30
Kovid Goyal
5d725c4883
Skip test o older freetype 2024-06-24 07:54:16 +05:30
Kovid Goyal
67d535a5db
Add a test for dejavu sans mono 2024-06-24 07:54:16 +05:30
Kovid Goyal
2cb823d3f0
Install needed fonts in CI 2024-06-24 07:54:16 +05:30
Kovid Goyal
7fd9bca845
IBM Plex Mono workaround is needed only under fontconfig 2024-06-24 07:54:16 +05:30
Kovid Goyal
2652342544
DRYer 2024-06-24 07:54:16 +05:30
Kovid Goyal
c27c731ffb
Get font selection for the cascadia code variable fonts working 2024-06-24 07:54:16 +05:30
Kovid Goyal
7cdcbe6aeb
Better scoring for malformed fonts with weird weight ranges 2024-06-24 07:54:16 +05:30
Kovid Goyal
304ecdd8c2
Refactor scoring 2024-06-24 07:54:16 +05:30
Kovid Goyal
b06a2bb937
Add more font selection tests 2024-06-24 07:54:16 +05:30
Kovid Goyal
46f391ae63
CoreText: Fix selection of font file with multi-file variant font
Also prefer semibold and use similar scorer as fontconfig
2024-06-24 07:54:16 +05:30
Kovid Goyal
1780028420
fontconfig: Prefer semi-bold as bold weight even for system selection 2024-06-24 07:54:16 +05:30
Kovid Goyal
ea65ede572
fontconfig: Lift axes spec to named style 2024-06-24 07:54:16 +05:30
Kovid Goyal
31fe34810f
Test for font selection 2024-06-24 07:54:16 +05:30
Kovid Goyal
4ab8c16184
... 2024-06-24 07:54:16 +05:30
Kovid Goyal
9cdc1674cf
DRYer 2024-06-24 07:54:15 +05:30
Kovid Goyal
5d3ea374d4
Fix medium face selection via fontconfig when family has only variable font files 2024-06-24 07:54:15 +05:30
Kovid Goyal
4de06fbeb2
Fix face sample rendering 2024-06-24 07:54:15 +05:30
Kovid Goyal
a5b5418bd3
Work on face panel 2024-06-24 07:54:15 +05:30
Kovid Goyal
5d86f5c93f
Start work on face panel 2024-06-24 07:54:15 +05:30
Kovid Goyal
4a0aa012e4
... 2024-06-24 07:54:15 +05:30
Kovid Goyal
e23243ec78
Use PSname in faces preview panel 2024-06-24 07:54:15 +05:30