mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-11 14:45:31 +03:00
Dont bother applying zero style to fallback
Micro-optimization
This commit is contained in:
parent
42994bac37
commit
af82938427
@ -291,7 +291,7 @@ static CTFontRef nerd_font(CGFloat sz) {
|
||||
|
||||
static CTFontRef
|
||||
apply_styles_to_fallback_font(CTFontRef original_fallback_font, bool bold, bool italic) {
|
||||
if (!original_fallback_font || is_last_resort_font(original_fallback_font)) return original_fallback_font;
|
||||
if (!original_fallback_font || (!bold && !italic) || is_last_resort_font(original_fallback_font)) return original_fallback_font;
|
||||
CTFontDescriptorRef original_descriptor = CTFontCopyFontDescriptor(original_fallback_font);
|
||||
// We cannot set kCTFontTraitMonoSpace in traits as if the original
|
||||
// fallback font is Zapf Dingbats we get .AppleSystemUIFontMonospaced as
|
||||
|
Loading…
Reference in New Issue
Block a user