Commit graph

14181 commits

Author SHA1 Message Date
Kovid Goyal
8d716ab6cb
... 2024-06-24 07:54:19 +05:30
Kovid Goyal
85b6f15313
More choose-fonts documentation 2024-06-24 07:54:19 +05:30
Kovid Goyal
73a5401815
Sort style names by variant axis value when available 2024-06-24 07:54:19 +05:30
Kovid Goyal
d51c56ed65
Fix marking of current style in list 2024-06-24 07:54:19 +05:30
Kovid Goyal
18ab18d090
Fix matching against style names in presence of elision 2024-06-24 07:54:19 +05:30
Kovid Goyal
5774965e32
Start documenting the choose fonts kitten 2024-06-24 07:54:19 +05:30
Kovid Goyal
f887519c1e
Fix spec generation for auto setting 2024-06-24 07:54:19 +05:30
Kovid Goyal
800bad207a
Fix changing styles discarding features 2024-06-24 07:54:19 +05:30
Kovid Goyal
2638c7241f
Preserve auto setting when re-running choose-fonts on already selected family 2024-06-24 07:54:19 +05:30
Kovid Goyal
47499d2711
Output features in spec_from_face 2024-06-24 07:54:19 +05:30
Kovid Goyal
64340943bd
... 2024-06-24 07:54:19 +05:30
Kovid Goyal
67a9ee680b
Automatically propagate features from regular face to the other faces when they are set to auto 2024-06-24 07:54:19 +05:30
Kovid Goyal
6e29561486
Fix sorting of features in UI 2024-06-24 07:54:19 +05:30
Kovid Goyal
a2b296d73e
Setting of index features now basically works 2024-06-24 07:54:19 +05:30
Kovid Goyal
0633000c50
... 2024-06-24 07:54:19 +05:30
Kovid Goyal
0cc8dd28de
Add support for font features when rendering sample text 2024-06-24 07:54:19 +05:30
Kovid Goyal
f10f4e8e5b
... 2024-06-24 07:54:18 +05:30
Kovid Goyal
09ad164ed5
Implement toggling of boolean features 2024-06-24 07:54:18 +05:30
Kovid Goyal
4b323a6b81
Work on UI for features 2024-06-24 07:54:18 +05:30
Kovid Goyal
e2919a0f2d
Fix preview rendering when height of previewed font greater than cell height 2024-06-24 07:54:18 +05:30
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