Commit Graph

14078 Commits

Author SHA1 Message Date
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
Kovid Goyal
3814e92f31 Work on listing available styles for a family 2024-06-24 07:54:12 +05:30
Kovid Goyal
3b80ee0981 Load font variable data on demand 2024-06-24 07:54:12 +05:30
Kovid Goyal
6baa915058 ... 2024-06-24 07:54:12 +05:30
Kovid Goyal
71f7da1550 dont use a thread for I/O with kitten 2024-06-24 07:54:12 +05:30
Kovid Goyal
3fa768d7ef get multiple JSON messages working 2024-06-24 07:54:12 +05:30
Kovid Goyal
26837ed6a4 List families asynchronously 2024-06-24 07:54:12 +05:30
Kovid Goyal
2bcd47227c Wire up arrow keys for moving in family list 2024-06-24 07:54:12 +05:30
Kovid Goyal
0864c2728d Wire up searching 2024-06-24 07:54:12 +05:30
Kovid Goyal
1d1998b4de Start work on list-fonts kitten 2024-06-24 07:54:12 +05:30
Kovid Goyal
48ed369342 Code to read the STAT OpenType table 2024-06-24 07:54:12 +05:30
Kovid Goyal
1669e099dc Needed for typing.NotRequired 2024-06-24 07:54:12 +05:30
Kovid Goyal
f5ae6fe152 Refactor font selection code to share more between fontconfig and CoreText 2024-06-24 07:54:12 +05:30
Kovid Goyal
6d7c54bcb2 Make CoreText signatures for some font finding methods the same as their equivalents in fontconfig 2024-06-24 07:54:12 +05:30
Kovid Goyal
1f58af3f58 DRYer 2024-06-24 07:54:12 +05:30
Kovid Goyal
56f8fb9f75 Implement basic support for selecting font variations in fontconfig 2024-06-24 07:54:09 +05:30
Kovid Goyal
6e3c9856d1 Wire up parsing of font specs 2024-06-24 07:53:16 +05:30
Kovid Goyal
b385ccbc45 Output resolved fonts in debug config 2024-06-24 07:53:16 +05:30
Kovid Goyal
3ca20ebc4e Implement parsing of fvar table
Cant rely on CoreText for this as it has incomplete and buggy APIs
2024-06-24 07:53:16 +05:30
Kovid Goyal
ba1a268de0 Implement postscript variation name prefix for CoreText as well 2024-06-24 07:53:16 +05:30
Kovid Goyal
98dac1020d Show the postscript variations name prefix when listing fonts 2024-06-24 07:53:16 +05:30
Kovid Goyal
f7f8b4cdf6 Use the full name from CoreText when available 2024-06-24 07:53:16 +05:30
Kovid Goyal
a864127e4f Prune listings of variable fonts
Show only one entry per style per variable font as identified by path
2024-06-24 07:53:16 +05:30
Kovid Goyal
00dc8f0e23 Ensure fontconfig pattern dict has all keys with default values 2024-06-24 07:53:16 +05:30
Kovid Goyal
189ec26dbc Cleanup resource management
Also add slant to CTFont descriptor
2024-06-24 07:53:16 +05:30
Kovid Goyal
228a9545ca Output psname for variation font 2024-06-24 07:53:15 +05:30
Kovid Goyal
2244b664bc Get variable font data from CoreText 2024-06-24 07:53:15 +05:30
Kovid Goyal
2f3578ad93 Start work on listing variable fonts under macOS 2024-06-24 07:53:15 +05:30
Kovid Goyal
fcbf0782b5 Fix building on older FreeType 2024-06-24 07:53:15 +05:30
Kovid Goyal
f4311d4b61 Add information about variable fonts to list-fonts output 2024-06-24 07:53:15 +05:30
Kovid Goyal
57770f2f55 Code to get variable data from freetype to python 2024-06-24 07:53:15 +05:30
Kovid Goyal
54fb6be112 Work on list variable fonts on Linux 2024-06-24 07:53:15 +05:30
Kovid Goyal
3ba2492e99 Allow fc-list to return variable fonts 2024-06-24 07:53:15 +05:30
Kovid Goyal
9b3bb05a3a Drop support for 32-bit x86 prebuilt binaries
SIMDe 0.8.2 doesnt build on 32 bit and while that will likely be fixed
eventually, 32bit isn't tested in CI and generally speaking there isn't
much use for this platform anymore. I dont know of any 32-bit computers
in common use these days.

As such the overhead of maintaining these is not worth it for me.
kitty itself remains buildable on 32-bit though no guarantees for how
long that will last. kitten remains available on 32bit.
2024-06-24 07:53:15 +05:30
Kovid Goyal
f6f97d4169 bump simde to 0.8.2 2024-06-24 07:53:15 +05:30
Kovid Goyal
8c000088ab fix session data transmission in new single instance code 2024-06-24 07:38:20 +05:30
Kovid Goyal
4997f5f520 Finish porting +open single instance CLI parsing 2024-06-23 20:49:44 +05:30
Kovid Goyal
3fd51e4ebb Cleanup previous PR 2024-06-23 19:27:11 +05:30
Kovid Goyal
26e2640039 Merge branch 'fractional_scaling_fix' of https://github.com/MichaelMBradley/kitty 2024-06-23 19:04:40 +05:30
Kovid Goyal
290c1742d5 Fix macOS single instance 2024-06-23 18:50:05 +05:30
Kovid Goyal
b5cf999da9 Make kitty --single-instance fast
No longer pay the overhead of starting the Python interpreter
just to write a message to the single instance socket. This reduces
the time for kitty --single-instance (for second and later instances)
from 70ms to 3ms an almost 25x improvement.

Needs testing on macOS and also porting of the +open handling.
2024-06-23 15:45:41 +05:30
Michael Bradley
4c54215d41 Only implement fix on Wayland 2024-06-22 15:28:45 -04:00
Kovid Goyal
581db0ab7a Make kitty --version fast
It's now approx 3ms on my system and 1.23 times faster than alacritty
--version
2024-06-22 12:27:29 +05:30
Kovid Goyal
ad328bfeaa version 0.35.2 v0.35.2 2024-06-22 09:04:46 +05:30