mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Move checking if font has cell text into the font backends
Gives us better control
This commit is contained in:
@@ -490,6 +490,10 @@ create_fallback_face(PyObject UNUSED *base_face, CPUCell* cell, bool bold, bool
|
||||
}
|
||||
end:
|
||||
if (pat != NULL) FcPatternDestroy(pat);
|
||||
if (ans && !has_cell_text(ans, cell, global_state.debug_font_fallback)) {
|
||||
Py_CLEAR(ans);
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
return ans;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user