remove unused QFontEngineFT::loadFlags() argument

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-12-25 16:04:03 +02:00
parent 0d8824ba7b
commit b8e95fd573
2 changed files with 8 additions and 10 deletions

View file

@ -437,7 +437,7 @@ bool QFontEngineFT::init(FaceId faceId)
return true;
}
int QFontEngineFT::loadFlags(QGlyphSet *set, int flags) const
int QFontEngineFT::loadFlags(int flags) const
{
int load_flags = FT_LOAD_DEFAULT | default_load_flags;
@ -463,7 +463,7 @@ QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(glyph_t glyph, bool fetchMetricsO
return g;
}
int load_flags = loadFlags(&defaultGlyphSet, 0);
int load_flags = loadFlags(0);
FT_Face face = freetype->face;
FT_Error err = FT_Load_Glyph(face, glyph, load_flags);
if (err && (load_flags & FT_LOAD_NO_BITMAP)) {
@ -742,10 +742,8 @@ void QFontEngineFT::addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int
FT_Face face = getFace();
for (int gl = 0; gl < numGlyphs; gl++) {
FT_UInt glyph = glyphs[gl];
int load_flags = loadFlags(&defaultGlyphSet, 0);
FT_Load_Glyph(face, glyph, load_flags);
int load_flags = loadFlags(0);
FT_Load_Glyph(face, glyphs[gl], load_flags);
if (!FT_IS_SCALABLE(face))
QFreetypeFace::addBitmapToPath(face->glyph, positions[gl], path);
@ -968,7 +966,7 @@ void QFontEngineFT::QGlyphSet::setGlyph(glyph_t index, Glyph *glyph)
HB_Error QFontEngineFT::getPointInOutline(HB_Glyph glyph, int flags, hb_uint32 point, HB_Fixed *xpos, HB_Fixed *ypos, hb_uint32 *nPoints)
{
getFace();
int load_flags = loadFlags(0, flags);
int load_flags = loadFlags(flags);
HB_Error result = freetype->getPointInOutline(glyph, load_flags, point, xpos, ypos, nPoints);
return result;
}

View file

@ -193,7 +193,7 @@ protected:
HintStyle default_hint_style;
private:
int loadFlags(QGlyphSet *set, int flags) const;
int loadFlags(int flags) const;
QFreetypeFace *freetype;
bool embolden;