Skip to content

Commit

Permalink
Fix mono and sdf rendermode conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Labrium committed Jun 23, 2024
1 parent c52763d commit 85cd98f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/font/freetype/TrueTypeRasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 85cd98f

Please sign in to comment.