Move checking if font has cell text into the font backends

Gives us better control
This commit is contained in:
Kovid Goyal
2024-06-30 14:37:28 +05:30
parent 89cf58ba2b
commit aaf65ec155
4 changed files with 30 additions and 20 deletions

View File

@@ -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;
}