do not render glyphs during text layout

This commit is contained in:
nulano 2020-05-27 06:32:22 +02:00
parent a78de17346
commit 7b8805fcee

View File

@ -553,7 +553,7 @@ text_layout_fallback(PyObject* string, FontObject* self, const char* dir, PyObje
return 0; return 0;
} }
load_flags = FT_LOAD_RENDER|FT_LOAD_NO_BITMAP; load_flags = FT_LOAD_NO_BITMAP;
if (mask) { if (mask) {
load_flags |= FT_LOAD_TARGET_MONO; load_flags |= FT_LOAD_TARGET_MONO;
} }