mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Prefer color emoji fonts
This commit is contained in:
@@ -195,6 +195,7 @@ create_fallback_face(PyObject UNUSED *base_face, Cell* cell, bool bold, bool ita
|
|||||||
AP(FcPatternAddString, FC_FAMILY, (const FcChar8*)(emoji ? "emoji" : "monospace"), "family");
|
AP(FcPatternAddString, FC_FAMILY, (const FcChar8*)(emoji ? "emoji" : "monospace"), "family");
|
||||||
if (!emoji && bold) { AP(FcPatternAddInteger, FC_WEIGHT, FC_WEIGHT_BOLD, "weight"); }
|
if (!emoji && bold) { AP(FcPatternAddInteger, FC_WEIGHT, FC_WEIGHT_BOLD, "weight"); }
|
||||||
if (!emoji && italic) { AP(FcPatternAddInteger, FC_SLANT, FC_SLANT_ITALIC, "slant"); }
|
if (!emoji && italic) { AP(FcPatternAddInteger, FC_SLANT, FC_SLANT_ITALIC, "slant"); }
|
||||||
|
if (emoji) { AP(FcPatternAddBool, FC_COLOR, true, "color"); }
|
||||||
size_t num = cell_as_unicode(cell, true, char_buf, ' ');
|
size_t num = cell_as_unicode(cell, true, char_buf, ' ');
|
||||||
add_charset(pat, num);
|
add_charset(pat, num);
|
||||||
PyObject *d = _fc_match(pat);
|
PyObject *d = _fc_match(pat);
|
||||||
|
|||||||
Reference in New Issue
Block a user