mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fix mono and sdf rendermode conflicts
This commit is contained in:
@@ -121,10 +121,10 @@ GlyphData *TrueTypeRasterizer::getGlyphDataForIndex(int index) const
|
||||
throw love::Exception("TrueType Font glyph error: FT_Get_Glyph failed (0x%x)", err);
|
||||
|
||||
FT_Render_Mode rendermode = FT_RENDER_MODE_NORMAL;
|
||||
if (hinting == HINTING_MONO)
|
||||
rendermode = FT_RENDER_MODE_MONO;
|
||||
else if (sdf == true)
|
||||
if (sdf)
|
||||
rendermode = FT_RENDER_MODE_SDF;
|
||||
else if (hinting == HINTING_MONO)
|
||||
rendermode = FT_RENDER_MODE_MONO;
|
||||
|
||||
err = FT_Glyph_To_Bitmap(&ftglyph, rendermode, 0, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user