mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +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);
|
throw love::Exception("TrueType Font glyph error: FT_Get_Glyph failed (0x%x)", err);
|
||||||
|
|
||||||
FT_Render_Mode rendermode = FT_RENDER_MODE_NORMAL;
|
FT_Render_Mode rendermode = FT_RENDER_MODE_NORMAL;
|
||||||
if (hinting == HINTING_MONO)
|
if (sdf)
|
||||||
rendermode = FT_RENDER_MODE_MONO;
|
|
||||||
else if (sdf == true)
|
|
||||||
rendermode = FT_RENDER_MODE_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);
|
err = FT_Glyph_To_Bitmap(&ftglyph, rendermode, 0, 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user