Verified Commit 47e18bbf authored by Bernd Paysan's avatar Bernd Paysan
Browse files

No color fonts for outdated freetype versions

parent d254d64f
Loading
Loading
Loading
Loading
+5 −0
Changes for texture-font.c: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -658,7 +658,12 @@ texture_font_load_glyph( texture_font_t * self,

    if( self->atlas->depth == 4 )
    {
#ifdef FT_LOAD_COLOR
	flags |= FT_LOAD_COLOR;
#else
	freetype_error( 0, "FT_Error (%s:%d, code 0x%02x) : %s\n",
			    __FILENAME__, __LINE__, 0, "FT_LOAD_COLOR not available");
#endif
    }

    error = FT_Load_Glyph( self->face, glyph_index, flags );