Skip to content

Commit

Permalink
Remove stash artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Labrium committed Jun 22, 2024
1 parent b98aced commit c52763d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion src/modules/font/TrueTypeRasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ StringMap<TrueTypeRasterizer::Hinting, TrueTypeRasterizer::HINTING_MAX_ENUM>::En
{"light", HINTING_LIGHT},
{"mono", HINTING_MONO},
{"none", HINTING_NONE},
{"sdf", HINTING_SDF},
};

StringMap<TrueTypeRasterizer::Hinting, TrueTypeRasterizer::HINTING_MAX_ENUM> TrueTypeRasterizer::hintings(TrueTypeRasterizer::hintingEntries, sizeof(TrueTypeRasterizer::hintingEntries));
Expand Down
1 change: 0 additions & 1 deletion src/modules/font/TrueTypeRasterizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class TrueTypeRasterizer : public Rasterizer
HINTING_LIGHT,
HINTING_MONO,
HINTING_NONE,
HINTING_SDF,
HINTING_MAX_ENUM
};

Expand Down
9 changes: 1 addition & 8 deletions src/modules/font/freetype/TrueTypeRasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,11 @@ GlyphData *TrueTypeRasterizer::getGlyphDataForIndex(int index) const
FT_Render_Mode rendermode = FT_RENDER_MODE_NORMAL;
if (hinting == HINTING_MONO)
rendermode = FT_RENDER_MODE_MONO;
<<<<<<< Updated upstream
else if (hinting == HINTING_SDF)
=======
else if (sdf == true)
>>>>>>> Stashed changes
rendermode = FT_RENDER_MODE_SDF;

err = FT_Glyph_To_Bitmap(&ftglyph, rendermode, 0, 1);

if (err != FT_Err_Ok)
{
if (rendermode == FT_RENDER_MODE_SDF)
Expand All @@ -144,10 +141,7 @@ GlyphData *TrueTypeRasterizer::getGlyphDataForIndex(int index) const
throw love::Exception("TrueType Font glyph error: FT_Glyph_To_Bitmap failed (0x%x)", err);
}
}
<<<<<<< Updated upstream
=======

>>>>>>> Stashed changes
FT_BitmapGlyph bitmap_glyph = (FT_BitmapGlyph) ftglyph;
const FT_Bitmap &bitmap = bitmap_glyph->bitmap; //just to make things easier

Expand Down Expand Up @@ -257,7 +251,6 @@ FT_UInt TrueTypeRasterizer::hintingToLoadOption(Hinting hint)
return FT_LOAD_TARGET_LIGHT;
case HINTING_MONO:
return FT_LOAD_TARGET_MONO;
case HINTING_SDF:
case HINTING_NONE:
return FT_LOAD_NO_HINTING;
}
Expand Down

0 comments on commit c52763d

Please sign in to comment.