Commit Graph

14173 Commits

Author SHA1 Message Date
Kovid Goyal
656d2179c9 ... 2024-06-22 11:33:22 +05:30
Kovid Goyal
da582b5622 ... 2024-06-22 11:20:54 +05:30
Kovid Goyal
ba4292e912 More choose-fonts documentation 2024-06-22 11:20:54 +05:30
Kovid Goyal
785726d21d Sort style names by variant axis value when available 2024-06-22 11:20:54 +05:30
Kovid Goyal
e3a155266e Fix marking of current style in list 2024-06-22 11:20:54 +05:30
Kovid Goyal
e3eb179be2 Fix matching against style names in presence of elision 2024-06-22 11:20:54 +05:30
Kovid Goyal
e88ae3397f Start documenting the choose fonts kitten 2024-06-22 11:20:54 +05:30
Kovid Goyal
8e0ef0c430 Fix spec generation for auto setting 2024-06-22 11:20:54 +05:30
Kovid Goyal
02df66733e Fix changing styles discarding features 2024-06-22 11:20:54 +05:30
Kovid Goyal
4a038ea581 Preserve auto setting when re-running choose-fonts on already selected family 2024-06-22 11:20:54 +05:30
Kovid Goyal
e41d57dffd Output features in spec_from_face 2024-06-22 11:20:54 +05:30
Kovid Goyal
b63be88bac ... 2024-06-22 11:20:54 +05:30
Kovid Goyal
8bfff51d23 Automatically propagate features from regular face to the other faces when they are set to auto 2024-06-22 11:20:54 +05:30
Kovid Goyal
72268539ef Fix sorting of features in UI 2024-06-22 11:20:54 +05:30
Kovid Goyal
5b83a33888 Setting of index features now basically works 2024-06-22 11:20:54 +05:30
Kovid Goyal
daaec1b47f ... 2024-06-22 11:20:53 +05:30
Kovid Goyal
bc56fce38d Add support for font features when rendering sample text 2024-06-22 11:20:53 +05:30
Kovid Goyal
788b3dc4b2 ... 2024-06-22 11:20:53 +05:30
Kovid Goyal
f4e22ebe3c Implement toggling of boolean features 2024-06-22 11:20:53 +05:30
Kovid Goyal
349c32f60e Work on UI for features 2024-06-22 11:20:53 +05:30
Kovid Goyal
3f919db0c7 Fix preview rendering when height of previewed font greater than cell height 2024-06-22 11:20:53 +05:30
Kovid Goyal
c4dad85f99 test render function to develop the sample renderer 2024-06-22 11:20:53 +05:30
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