Commit Graph

14111 Commits

Author SHA1 Message Date
Kovid Goyal
d6026c377b Test for font selection 2024-06-22 11:16:40 +05:30
Kovid Goyal
a766a95de6 ... 2024-06-22 11:16:40 +05:30
Kovid Goyal
36d906d4f5 DRYer 2024-06-22 11:16:40 +05:30
Kovid Goyal
881b72fea7 Fix medium face selection via fontconfig when family has only variable font files 2024-06-22 11:16:40 +05:30
Kovid Goyal
d6a7d4a8a1 Fix face sample rendering 2024-06-22 11:16:40 +05:30
Kovid Goyal
db092eb88d Work on face panel 2024-06-22 11:16:40 +05:30
Kovid Goyal
33df5355a6 Start work on face panel 2024-06-22 11:16:39 +05:30
Kovid Goyal
99e279cbe9 ... 2024-06-22 11:16:39 +05:30
Kovid Goyal
82ffb376b2 Use PSname in faces preview panel 2024-06-22 11:16:39 +05:30
Kovid Goyal
fc72f4961e Transmit metadata about rendered samples 2024-06-22 11:16:39 +05:30
Kovid Goyal
880078cab8 Get rendering of faces panel working 2024-06-22 11:16:39 +05:30
Kovid Goyal
88058c9075 Work on faces panel 2024-06-22 11:16:39 +05:30
Kovid Goyal
ecdea9d4d3 Start work on faces panel 2024-06-22 11:16:39 +05:30
Kovid Goyal
5ace209024 ... 2024-06-22 11:16:39 +05:30
Kovid Goyal
b68aac9f28 Forgot to initialize canvas when rendering sample text onto it 2024-06-22 11:16:39 +05:30
Kovid Goyal
71bbf4ecb9 Fix graphics being freed instead of deleted in draw_screen() 2024-06-22 11:16:39 +05:30
Kovid Goyal
1590462038 Get preview to basically display 2024-06-22 11:16:39 +05:30
Kovid Goyal
1735404a05 Move listing code into its own file 2024-06-22 11:16:39 +05:30
Kovid Goyal
3c18d20d1b Code to get specs from options 2024-06-22 11:16:39 +05:30
Kovid Goyal
e51a1362ca Handle default values not present in variation data under CoreText 2024-06-22 11:16:39 +05:30
Kovid Goyal
5cea5cce81 Use the cache for getting variable data for faces 2024-06-22 11:16:38 +05:30
Kovid Goyal
bb722ed6dc Function to get the named style used by a variable font instance 2024-06-22 11:16:38 +05:30
Kovid Goyal
78e81ec589 Get variable font selection working on coretext 2024-06-22 11:16:38 +05:30
Kovid Goyal
80721e1e63 Fix build on older fontconfig 2024-06-22 11:16:38 +05:30
Kovid Goyal
7186b862f2 Cleanup repr for fontconfig faces 2024-06-22 11:16:38 +05:30
Kovid Goyal
e4d82074ff Implement spec based selection for variable fonts 2024-06-22 11:16:38 +05:30
Kovid Goyal
804ad62a33 Start work on displaying font sampler images 2024-06-22 11:16:38 +05:30
Kovid Goyal
4431cff7fa Use KITTY_PID to find kitty exe when possible 2024-06-22 11:16:38 +05:30
Kovid Goyal
78b77b0d01 Fix crash on CoreText for very large font sizes 2024-06-22 11:16:38 +05:30
Kovid Goyal
2c2fbd4445 Implement rendering of sample text 2024-06-22 11:16:38 +05:30
Kovid Goyal
333e94622e Move the query_terminal implementation to Go 2024-06-22 11:16:38 +05:30
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