Changed a Font comment related to the use of the FreeType auto-hinter

This commit is contained in:
Leon Styhre 2023-09-27 22:08:42 +02:00
parent b7e3d3064d
commit 7d32aac99d

View file

@ -726,9 +726,9 @@ Font::Glyph* Font::getGlyph(const unsigned int id)
const FT_GlyphSlot glyphSlot {face->glyph}; const FT_GlyphSlot glyphSlot {face->glyph};
// TODO: Evaluate/test hinting when HarfBuzz has been added.
// If the font does not contain hinting information then force the use of the automatic // If the font does not contain hinting information then force the use of the automatic
// hinter that is built into FreeType. // hinter that is built into FreeType. Note: Using font-supplied hints generally looks worse
// than using the auto-hinter so it's disabled for now.
// const bool hasHinting {static_cast<bool>(glyphSlot->face->face_flags & FT_FACE_FLAG_HINTER)}; // const bool hasHinting {static_cast<bool>(glyphSlot->face->face_flags & FT_FACE_FLAG_HINTER)};
const bool hasHinting {true}; const bool hasHinting {true};