Merge pull request #4652 from nulano/ft-getsize

Do not render glyphs during text layout
This commit is contained in:
Andrew Murray 2020-05-27 19:24:29 +10:00 committed by GitHub
commit 8e6e728948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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