mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
remove unused QFontEngine::glyphCount() and its reimplementation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b9f94302a5
commit
4683d5db16
4 changed files with 0 additions and 22 deletions
|
@ -522,14 +522,6 @@ void QFontEngine::doKerning(QGlyphLayout *, QTextEngine::ShaperFlags)
|
|||
}
|
||||
#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 f = family;
|
||||
|
|
|
@ -776,16 +776,6 @@ glyph_metrics_t QFontEngineFT::boundingBox(glyph_t glyph) const
|
|||
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 face = freetype->face;
|
||||
|
|
|
@ -156,8 +156,6 @@ private:
|
|||
|
||||
virtual void recalcAdvances(QGlyphLayout *glyphs, QTextEngine::ShaperFlags flags) const;
|
||||
|
||||
virtual int glyphCount() const;
|
||||
|
||||
enum Scaling {
|
||||
Scaled,
|
||||
Unscaled
|
||||
|
|
|
@ -146,8 +146,6 @@ public:
|
|||
|
||||
virtual Type type() const = 0;
|
||||
|
||||
virtual int glyphCount() const;
|
||||
|
||||
HB_Font harfbuzzFont() const;
|
||||
HB_Face harfbuzzFace() const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue