mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
remove unused QFontEngineFT::loadFlags() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0d8824ba7b
commit
b8e95fd573
2 changed files with 8 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue