No color fonts for outdated freetype versions

parent 47e18bbf
......@@ -842,7 +842,9 @@ cleanup_stroker:
}
// Discard hinting to get advance
FT_Load_Glyph( self->face, glyph_index,
#ifdef FT_LOAD_COLOR
((self->atlas->depth == 4) ? FT_LOAD_COLOR : 0) |
#endif
FT_LOAD_RENDER | FT_LOAD_NO_HINTING);
slot = self->face->glyph;
if( self->atlas->depth == 4 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment