mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Merge branch 'master' of https://github.com/matubu/kitty
This commit is contained in:
@@ -520,7 +520,7 @@ face_from_descriptor:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ans = face_from_descriptor(d, fg);
|
ans = face_from_descriptor(d, fg);
|
||||||
if (!glyph_found) glyph_found = has_cell_text(face_has_codepoint, ans, cell, false);
|
if (!glyph_found && ans) glyph_found = has_cell_text(face_has_codepoint, ans, cell, false);
|
||||||
}
|
}
|
||||||
end:
|
end:
|
||||||
Py_CLEAR(d);
|
Py_CLEAR(d);
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ face_from_descriptor(PyObject *descriptor, FONTS_DATA_HANDLE fg) {
|
|||||||
if (retval != NULL) {
|
if (retval != NULL) {
|
||||||
Face *self = (Face *)retval;
|
Face *self = (Face *)retval;
|
||||||
int error;
|
int error;
|
||||||
if ((error = FT_New_Face(library, path, index, &(self->face)))) { self->face = NULL; set_load_error(path, error); }
|
if ((error = FT_New_Face(library, path, index, &(self->face)))) { self->face = NULL; return set_load_error(path, error); }
|
||||||
if (!init_ft_face(self, PyDict_GetItemString(descriptor, "path"), hinting, hint_style, fg)) return NULL;
|
if (!init_ft_face(self, PyDict_GetItemString(descriptor, "path"), hinting, hint_style, fg)) return NULL;
|
||||||
PyObject *ns = PyDict_GetItemString(descriptor, "named_style");
|
PyObject *ns = PyDict_GetItemString(descriptor, "named_style");
|
||||||
if (ns) {
|
if (ns) {
|
||||||
|
|||||||
Reference in New Issue
Block a user