Get rid of QFontEngine::name()
It was only used in QFontCache debug output, and some engines weren't even report a name. Change-Id: I6cec4b75f105f5a4e1405f50188bebb3a3f04e33 Reviewed-by: Lars Knoll <lars.knoll@digia.com>bb10
parent
34e560fc92
commit
e69284db08
|
|
@ -2770,10 +2770,10 @@ void QFontCache::updateHitCountAndTimeStamp(Engine &value)
|
|||
value.timestamp = ++current_timestamp;
|
||||
|
||||
FC_DEBUG("QFontCache: found font engine\n"
|
||||
" %p: timestamp %4u hits %3u ref %2d/%2d, type '%s'",
|
||||
" %p: timestamp %4u hits %3u ref %2d/%2d, type %d",
|
||||
value.data, value.timestamp, value.hits,
|
||||
value.data->ref.load(), engineCacheCount.value(value.data),
|
||||
value.data->name());
|
||||
value.data->type());
|
||||
}
|
||||
|
||||
void QFontCache::insertEngine(const Key &key, QFontEngine *engine, bool insertMulti)
|
||||
|
|
@ -2969,10 +2969,10 @@ void QFontCache::timerEvent(QTimerEvent *)
|
|||
|
||||
it = jt;
|
||||
if (it != end) {
|
||||
FC_DEBUG(" %p: timestamp %4u hits %2u ref %2d/%2d, type '%s'",
|
||||
FC_DEBUG(" %p: timestamp %4u hits %2u ref %2d/%2d, type %d",
|
||||
it.value().data, it.value().timestamp, it.value().hits,
|
||||
it.value().data->ref.load(), engineCacheCount.value(it.value().data),
|
||||
it.value().data->name());
|
||||
it.value().data->type());
|
||||
|
||||
QFontEngine *fontEngine = it.value().data;
|
||||
// get rid of all occurrences
|
||||
|
|
|
|||
|
|
@ -1497,12 +1497,6 @@ qreal QFontEngineBox::maxCharWidth() const
|
|||
return _size;
|
||||
}
|
||||
|
||||
|
||||
const char *QFontEngineBox::name() const
|
||||
{
|
||||
return "null";
|
||||
}
|
||||
|
||||
bool QFontEngineBox::canRender(const QChar *, int) const
|
||||
{
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -230,8 +230,6 @@ private:
|
|||
|
||||
inline virtual Type type() const
|
||||
{ return QFontEngine::Freetype; }
|
||||
inline virtual const char *name() const
|
||||
{ return "freetype"; }
|
||||
|
||||
virtual void getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics);
|
||||
|
||||
|
|
|
|||
|
|
@ -225,8 +225,6 @@ public:
|
|||
|
||||
virtual void getGlyphBearings(glyph_t glyph, qreal *leftBearing = 0, qreal *rightBearing = 0);
|
||||
|
||||
virtual const char *name() const = 0;
|
||||
|
||||
inline bool canRender(uint ucs4) const { return glyphIndex(ucs4) != 0; }
|
||||
virtual bool canRender(const QChar *str, int len) const;
|
||||
|
||||
|
|
@ -361,8 +359,6 @@ public:
|
|||
virtual qreal minRightBearing() const { return 0; }
|
||||
virtual QImage alphaMapForGlyph(glyph_t);
|
||||
|
||||
virtual const char *name() const;
|
||||
|
||||
virtual bool canRender(const QChar *string, int len) const;
|
||||
|
||||
virtual Type type() const;
|
||||
|
|
@ -411,8 +407,6 @@ public:
|
|||
{ return QFontEngine::Multi; }
|
||||
|
||||
virtual bool canRender(const QChar *string, int len) const;
|
||||
inline virtual const char *name() const
|
||||
{ return "Multi"; }
|
||||
|
||||
QFontEngine *engine(int at) const
|
||||
{Q_ASSERT(at < engines.size()); return engines.at(at); }
|
||||
|
|
|
|||
|
|
@ -184,8 +184,6 @@ public:
|
|||
|
||||
Type type() const;
|
||||
|
||||
inline const char *name() const { return "QPF2"; }
|
||||
|
||||
virtual int glyphCount() const { return glyphMapEntries; }
|
||||
|
||||
bool isValid() const;
|
||||
|
|
|
|||
|
|
@ -79,8 +79,6 @@ public:
|
|||
virtual void addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int numGlyphs,
|
||||
QPainterPath *path, QTextItem::RenderFlags);
|
||||
|
||||
virtual const char *name() const { return "QCoreTextFontEngine"; }
|
||||
|
||||
virtual bool canRender(const QChar *string, int len) const;
|
||||
|
||||
virtual int synthesized() const { return synthesisFlags; }
|
||||
|
|
|
|||
|
|
@ -771,12 +771,6 @@ qreal QWindowsFontEngine::minRightBearing() const
|
|||
#endif // Q_OS_WINCE
|
||||
}
|
||||
|
||||
|
||||
const char *QWindowsFontEngine::name() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
QFontEngine::Type QWindowsFontEngine::type() const
|
||||
{
|
||||
return QFontEngine::Win;
|
||||
|
|
|
|||
|
|
@ -110,8 +110,6 @@ public:
|
|||
virtual qreal minLeftBearing() const;
|
||||
virtual qreal minRightBearing() const;
|
||||
|
||||
virtual const char *name() const;
|
||||
|
||||
Type type() const;
|
||||
|
||||
virtual QImage alphaMapForGlyph(glyph_t t) { return alphaMapForGlyph(t, QTransform()); }
|
||||
|
|
|
|||
|
|
@ -642,11 +642,6 @@ QImage QWindowsFontEngineDirectWrite::alphaRGBMapForGlyph(glyph_t t,
|
|||
: mask.convertToFormat(QImage::Format_RGB32);
|
||||
}
|
||||
|
||||
const char *QWindowsFontEngineDirectWrite::name() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
QFontEngine::Type QWindowsFontEngineDirectWrite::type() const
|
||||
{
|
||||
return QFontEngine::DirectWrite;
|
||||
|
|
|
|||
|
|
@ -90,8 +90,6 @@ public:
|
|||
QFixed xHeight() const;
|
||||
qreal maxCharWidth() const;
|
||||
|
||||
const char *name() const;
|
||||
|
||||
bool supportsSubPixelPositions() const;
|
||||
|
||||
QImage alphaMapForGlyph(glyph_t glyph, QFixed subPixelPosition);
|
||||
|
|
|
|||
Loading…
Reference in New Issue