Remove unused code from QFontEngineFT.
This method is not being called anywhere. Change-Id: Ia32e8b48d324e4848db666de4d274a260d22b06d Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>bb10
parent
8a075c4057
commit
1acb774b2b
|
|
@ -1410,36 +1410,6 @@ QFontEngineFT::QGlyphSet *QFontEngineFT::loadTransformedGlyphSet(const QTransfor
|
|||
return gs;
|
||||
}
|
||||
|
||||
bool QFontEngineFT::loadGlyphs(QGlyphSet *gs, const glyph_t *glyphs, int num_glyphs,
|
||||
const QFixedPoint *positions,
|
||||
GlyphFormat format)
|
||||
{
|
||||
FT_Face face = 0;
|
||||
|
||||
for (int i = 0; i < num_glyphs; ++i) {
|
||||
QFixed spp = subPixelPositionForX(positions[i].x);
|
||||
Glyph *glyph = gs ? gs->getGlyph(glyphs[i], spp) : 0;
|
||||
if (glyph == 0 || glyph->format != format) {
|
||||
if (!face) {
|
||||
face = lockFace();
|
||||
FT_Matrix m = matrix;
|
||||
FT_Matrix_Multiply(&gs->transformationMatrix, &m);
|
||||
FT_Set_Transform(face, &m, 0);
|
||||
freetype->matrix = m;
|
||||
}
|
||||
if (!loadGlyph(gs, glyphs[i], spp, format)) {
|
||||
unlockFace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (face)
|
||||
unlockFace();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void QFontEngineFT::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics)
|
||||
{
|
||||
FT_Face face = lockFace(Unscaled);
|
||||
|
|
|
|||
|
|
@ -269,9 +269,6 @@ private:
|
|||
Glyph *loadGlyphFor(glyph_t g, QFixed subPixelPosition, GlyphFormat format, const QTransform &t);
|
||||
|
||||
QGlyphSet *loadTransformedGlyphSet(const QTransform &matrix);
|
||||
bool loadGlyphs(QGlyphSet *gs, const glyph_t *glyphs, int num_glyphs,
|
||||
const QFixedPoint *positions,
|
||||
GlyphFormat format = Format_Render);
|
||||
|
||||
QFontEngineFT(const QFontDef &fd);
|
||||
virtual ~QFontEngineFT();
|
||||
|
|
|
|||
Loading…
Reference in New Issue