mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 22:14:53 +02:00
...
This commit is contained in:
@@ -681,7 +681,7 @@ fallback_font(FontGroup *fg, const CPUCell *cpu_cell, const GPUCell *gpu_cell, c
|
||||
bool emoji_presentation = has_emoji_presentation(cpu_cell, lc);
|
||||
char style = emoji_presentation ? 'a' : 'A';
|
||||
if (bold) style += italic ? 3 : 2; else style += italic ? 1 : 0;
|
||||
char cell_text[4 * (MAX_NUM_CODEPOINTS_PER_CELL + 8)] = {style};
|
||||
char cell_text[4u * (MAX_NUM_CODEPOINTS_PER_CELL + 8u)] = {style};
|
||||
const size_t cell_text_len = 1 + chars_as_utf8(lc, cell_text + 1, arraysz(cell_text) - 1, ' ');
|
||||
fallback_font_map_t_itr fi = vt_get(&fg->fallback_font_map, cell_text);
|
||||
if (!vt_is_end(fi)) return fi.data->val;
|
||||
|
||||
@@ -27,7 +27,7 @@ static_assert(sizeof(CellAttrs) == sizeof(uint32_t), "Fix the ordering of CellAt
|
||||
#define WIDTH_MASK (3u)
|
||||
#define DECORATION_MASK (7u)
|
||||
#define SGR_MASK (~(((CellAttrs){.mark=MARK_MASK}).val))
|
||||
#define MAX_NUM_CODEPOINTS_PER_CELL 24
|
||||
#define MAX_NUM_CODEPOINTS_PER_CELL 24u
|
||||
// Text presentation selector
|
||||
#define VS15 0xfe0e
|
||||
// Emoji presentation selector
|
||||
|
||||
Reference in New Issue
Block a user