Commit Graph

14080 Commits

Author SHA1 Message Date
Kovid Goyal
41869d88c2 Work on rendering sample text for a font 2024-06-22 11:16:38 +05:30
Kovid Goyal
65b790df40 Also get the current fg/bg colors to render text with 2024-06-22 11:16:38 +05:30
Kovid Goyal
5d74d210ee Query font size and DPI from terminal 2024-06-22 11:16:38 +05:30
Kovid Goyal
431fc98659 Get query terminal working again
Also return current OS Window's font size
2024-06-22 11:16:38 +05:30
Kovid Goyal
21d3759f62 Report when a family has variable fonts 2024-06-22 11:16:38 +05:30
Kovid Goyal
24dea14795 Fix off by one in hyperlink extent 2024-06-22 11:16:37 +05:30
Kovid Goyal
94628dca21 Use correct pointer shape for hyperlinks 2024-06-22 11:16:37 +05:30
Kovid Goyal
d6016f4246 Get clicking on family names functional 2024-06-22 11:16:37 +05:30
Kovid Goyal
688736c4cf ... 2024-06-22 11:16:37 +05:30
Kovid Goyal
1ce31a339e Make kitty +list-fonts a wrapper around choose font 2024-06-22 11:16:37 +05:30
Kovid Goyal
d86da0616e Wire up the backend 2024-06-22 11:16:37 +05:30
Kovid Goyal
926dfd7ba1 Replace list_fonts with choose-fonts kitten 2024-06-22 11:16:37 +05:30
Kovid Goyal
e1b367e1b3 Use stdlib maps/slices 2024-06-22 11:16:37 +05:30
Kovid Goyal
4998fe66b9 Use RenderLines.InRectangle 2024-06-22 11:16:37 +05:30
Kovid Goyal
7f965eba5f Infrastructure for simple internal hyperlink handling 2024-06-22 11:16:37 +05:30
Kovid Goyal
0b743464fb Work on supporting mouse interactions via simple hyperlinks 2024-06-22 11:16:37 +05:30
Kovid Goyal
ffed63a048 Display all styles from STAT table 2024-06-22 11:16:37 +05:30
Kovid Goyal
96c17b0a67 Work on getting styles from STAT table data 2024-06-22 11:16:37 +05:30
Kovid Goyal
8a0b562f4f Work on listing available styles for a family 2024-06-22 11:16:37 +05:30
Kovid Goyal
198aec84c2 Load font variable data on demand 2024-06-22 11:16:37 +05:30
Kovid Goyal
217ded7b3f ... 2024-06-22 11:16:37 +05:30
Kovid Goyal
7522675553 dont use a thread for I/O with kitten 2024-06-22 11:16:36 +05:30
Kovid Goyal
8a8158f287 get multiple JSON messages working 2024-06-22 11:16:36 +05:30
Kovid Goyal
1646c297b3 List families asynchronously 2024-06-22 11:16:36 +05:30
Kovid Goyal
de9d9fd157 Wire up arrow keys for moving in family list 2024-06-22 11:16:36 +05:30
Kovid Goyal
c2e0ecef13 Wire up searching 2024-06-22 11:16:36 +05:30
Kovid Goyal
6e55949094 Start work on list-fonts kitten 2024-06-22 11:16:36 +05:30
Kovid Goyal
21f824e825 Code to read the STAT OpenType table 2024-06-22 11:16:36 +05:30
Kovid Goyal
086185e409 Needed for typing.NotRequired 2024-06-22 11:16:36 +05:30
Kovid Goyal
e3e7bded06 Refactor font selection code to share more between fontconfig and CoreText 2024-06-22 11:16:36 +05:30
Kovid Goyal
7e232b33be Make CoreText signatures for some font finding methods the same as their equivalents in fontconfig 2024-06-22 11:16:36 +05:30
Kovid Goyal
53be33f14d DRYer 2024-06-22 11:16:36 +05:30
Kovid Goyal
54b50858ec Implement basic support for selecting font variations in fontconfig 2024-06-22 11:16:36 +05:30
Kovid Goyal
46d75ea48f Wire up parsing of font specs 2024-06-22 11:16:34 +05:30
Kovid Goyal
bf73720805 Output resolved fonts in debug config 2024-06-22 11:13:23 +05:30
Kovid Goyal
eb580ed91b Implement parsing of fvar table
Cant rely on CoreText for this as it has incomplete and buggy APIs
2024-06-22 11:13:22 +05:30
Kovid Goyal
7f8ce387be Implement postscript variation name prefix for CoreText as well 2024-06-22 11:13:22 +05:30
Kovid Goyal
8ddd20770b Show the postscript variations name prefix when listing fonts 2024-06-22 11:13:22 +05:30
Kovid Goyal
53ea650c27 Use the full name from CoreText when available 2024-06-22 11:13:22 +05:30
Kovid Goyal
3b84498af9 Prune listings of variable fonts
Show only one entry per style per variable font as identified by path
2024-06-22 11:13:22 +05:30
Kovid Goyal
fa52066156 Ensure fontconfig pattern dict has all keys with default values 2024-06-22 11:13:22 +05:30
Kovid Goyal
e2e33cc11c Cleanup resource management
Also add slant to CTFont descriptor
2024-06-22 11:13:22 +05:30
Kovid Goyal
71a8801a68 Output psname for variation font 2024-06-22 11:13:22 +05:30
Kovid Goyal
e54e17acf8 Get variable font data from CoreText 2024-06-22 11:13:22 +05:30
Kovid Goyal
b57cb95522 Start work on listing variable fonts under macOS 2024-06-22 11:13:22 +05:30
Kovid Goyal
12fd1472f5 Fix building on older FreeType 2024-06-22 11:13:22 +05:30
Kovid Goyal
5a86960acd Add information about variable fonts to list-fonts output 2024-06-22 11:13:22 +05:30
Kovid Goyal
dbbc0ea9d4 Code to get variable data from freetype to python 2024-06-22 11:13:22 +05:30
Kovid Goyal
39f1ff6ead Work on list variable fonts on Linux 2024-06-22 11:13:22 +05:30
Kovid Goyal
2d088889f7 Allow fc-list to return variable fonts 2024-06-22 11:13:22 +05:30