remove unused QFontEngine::glyphCount() and its reimplementation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-12-26 14:21:25 +02:00
parent b9f94302a5
commit 4683d5db16
4 changed files with 0 additions and 22 deletions

View file

@ -522,14 +522,6 @@ void QFontEngine::doKerning(QGlyphLayout *, QTextEngine::ShaperFlags)
} }
#endif #endif
int QFontEngine::glyphCount() const
{
QByteArray maxpTable = getSfntTable(MAKE_TAG('m', 'a', 'x', 'p'));
if (maxpTable.size() < 6)
return 0;
return qFromBigEndian<quint16>(reinterpret_cast<const uchar *>(maxpTable.constData() + 4));
}
QByteArray QFontEngine::convertToPostscriptFontFamilyName(const QByteArray &family) QByteArray QFontEngine::convertToPostscriptFontFamilyName(const QByteArray &family)
{ {
QByteArray f = family; QByteArray f = family;

View file

@ -776,16 +776,6 @@ glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph) const
return overall; return overall;
} }
int QFontEngineFT::glyphCount() const
{
int count = 0;
FT_Face face = getFace();
if (face) {
count = face->num_glyphs;
}
return count;
}
FT_Face QFontEngineFT::getFace(Scaling scale) const FT_Face QFontEngineFT::getFace(Scaling scale) const
{ {
FT_Face face = freetype->face; FT_Face face = freetype->face;

View file

@ -156,8 +156,6 @@ private:
virtual void recalcAdvances(QGlyphLayout *glyphs, QTextEngine::ShaperFlags flags) const; virtual void recalcAdvances(QGlyphLayout *glyphs, QTextEngine::ShaperFlags flags) const;
virtual int glyphCount() const;
enum Scaling { enum Scaling {
Scaled, Scaled,
Unscaled Unscaled

View file

@ -146,8 +146,6 @@ public:
virtual Type type() const = 0; virtual Type type() const = 0;
virtual int glyphCount() const;
HB_Font harfbuzzFont() const; HB_Font harfbuzzFont() const;
HB_Face harfbuzzFace() const; HB_Face harfbuzzFace() const;