Commit Graph

14121 Commits

Author SHA1 Message Date
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
Kovid Goyal
f62fd424d2 Transmit metadata about rendered samples 2024-06-24 07:54:15 +05:30
Kovid Goyal
a4bff36baf Get rendering of faces panel working 2024-06-24 07:54:15 +05:30
Kovid Goyal
409009a337 Work on faces panel 2024-06-24 07:54:15 +05:30
Kovid Goyal
802ed976a9 Start work on faces panel 2024-06-24 07:54:15 +05:30
Kovid Goyal
9cfd920e11 ... 2024-06-24 07:54:15 +05:30
Kovid Goyal
22ecba93e5 Forgot to initialize canvas when rendering sample text onto it 2024-06-24 07:54:15 +05:30
Kovid Goyal
5a189b1afe Fix graphics being freed instead of deleted in draw_screen() 2024-06-24 07:54:15 +05:30
Kovid Goyal
a0840a7328 Get preview to basically display 2024-06-24 07:54:15 +05:30
Kovid Goyal
6c11f0eeb5 Move listing code into its own file 2024-06-24 07:54:15 +05:30
Kovid Goyal
1d6cd27c6f Code to get specs from options 2024-06-24 07:54:14 +05:30
Kovid Goyal
0706c8cf7c Handle default values not present in variation data under CoreText 2024-06-24 07:54:14 +05:30
Kovid Goyal
076ddd2998 Use the cache for getting variable data for faces 2024-06-24 07:54:14 +05:30
Kovid Goyal
1763cbde46 Function to get the named style used by a variable font instance 2024-06-24 07:54:14 +05:30
Kovid Goyal
b44ffb9815 Get variable font selection working on coretext 2024-06-24 07:54:14 +05:30
Kovid Goyal
69de414ba1 Fix build on older fontconfig 2024-06-24 07:54:14 +05:30
Kovid Goyal
3e8ca9fa73 Cleanup repr for fontconfig faces 2024-06-24 07:54:14 +05:30
Kovid Goyal
c1828fa2a4 Implement spec based selection for variable fonts 2024-06-24 07:54:14 +05:30
Kovid Goyal
6d751b94f6 Start work on displaying font sampler images 2024-06-24 07:54:14 +05:30
Kovid Goyal
314b2444c7 Use KITTY_PID to find kitty exe when possible 2024-06-24 07:54:14 +05:30
Kovid Goyal
aaa34bb1d6 Fix crash on CoreText for very large font sizes 2024-06-24 07:54:14 +05:30
Kovid Goyal
852889a561 Implement rendering of sample text 2024-06-24 07:54:14 +05:30
Kovid Goyal
2be91d73dd Move the query_terminal implementation to Go 2024-06-24 07:54:14 +05:30
Kovid Goyal
f0cac79143 Work on rendering sample text for a font 2024-06-24 07:54:14 +05:30
Kovid Goyal
af9f205ec4 Also get the current fg/bg colors to render text with 2024-06-24 07:54:14 +05:30
Kovid Goyal
b6e92dd79d Query font size and DPI from terminal 2024-06-24 07:54:13 +05:30
Kovid Goyal
d826265fd7 Get query terminal working again
Also return current OS Window's font size
2024-06-24 07:54:13 +05:30
Kovid Goyal
8844ae3a10 Report when a family has variable fonts 2024-06-24 07:54:13 +05:30
Kovid Goyal
f26b7533c6 Fix off by one in hyperlink extent 2024-06-24 07:54:13 +05:30
Kovid Goyal
27a2e3c488 Use correct pointer shape for hyperlinks 2024-06-24 07:54:13 +05:30
Kovid Goyal
96f8dbbbeb Get clicking on family names functional 2024-06-24 07:54:13 +05:30
Kovid Goyal
a0bed32614 ... 2024-06-24 07:54:13 +05:30
Kovid Goyal
0b09afe668 Make kitty +list-fonts a wrapper around choose font 2024-06-24 07:54:13 +05:30
Kovid Goyal
16d0f4b4ab Wire up the backend 2024-06-24 07:54:13 +05:30
Kovid Goyal
f2d5631c47 Replace list_fonts with choose-fonts kitten 2024-06-24 07:54:13 +05:30
Kovid Goyal
405f5ce148 Use stdlib maps/slices 2024-06-24 07:54:13 +05:30
Kovid Goyal
e7ed5716a9 Use RenderLines.InRectangle 2024-06-24 07:54:13 +05:30
Kovid Goyal
51472e1e88 Infrastructure for simple internal hyperlink handling 2024-06-24 07:54:13 +05:30
Kovid Goyal
9e688720a6 Work on supporting mouse interactions via simple hyperlinks 2024-06-24 07:54:13 +05:30
Kovid Goyal
9dc8374d8b Display all styles from STAT table 2024-06-24 07:54:13 +05:30
Kovid Goyal
d1ba421e8c Work on getting styles from STAT table data 2024-06-24 07:54:13 +05:30