How to display bold chinese on MacOS's kitty? #7241
-
Beta Was this translation helpful? Give feedback.
Answered by
kovidgoyal
Mar 20, 2024
Replies: 3 comments 2 replies
-
When looking for the fallback face, kitty passes the bold/italic flags
however, IIRC there is no way to get CoreText to respect these. If you
know of one, patches are welcome. Relevant code is in
create_fallback_face() in core_text.m
|
Beta Was this translation helpful? Give feedback.
0 replies
-
From what I remember of CoreText, you would probably need to first use
CTFontCreateForString() as the existing code does. Then once an
appropriate font is found create a font descriptor from the font and
then use CTFontDescriptorCreateCopyWithSymbolicTraits() setting the
weight and style appropriately. And then create a font from that
descriptor, check that the newly created fonts family is the same as the
original fallback font and if so use it instead of the original.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You dont need to do anything, this is already fixed in master: 752fcb6