QFontSubset: remove unused glyphName() overload
Amends b7f3253f906594ec1971fbea3a5760dcf8f01cdd(!). Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I39dd2efee241afc2a57d0eb614d3a396fef95b9e Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
1d961491d8
commit
215f0e4ea6
|
|
@ -78,24 +78,6 @@ QByteArray QFontSubset::glyphName(unsigned short unicode, bool symbol)
|
|||
return buffer;
|
||||
}
|
||||
|
||||
QByteArray QFontSubset::glyphName(unsigned int glyph, const QList<int> &reverseMap) const
|
||||
{
|
||||
uint glyphIndex = glyph_indices[glyph];
|
||||
|
||||
if (glyphIndex == 0)
|
||||
return "/.notdef";
|
||||
|
||||
QByteArray ba;
|
||||
QPdf::ByteStream s(&ba);
|
||||
if (reverseMap[glyphIndex] && reverseMap[glyphIndex] < 0x10000) {
|
||||
s << '/' << glyphName(reverseMap[glyphIndex], false);
|
||||
} else {
|
||||
s << "/gl" << (int)glyphIndex;
|
||||
}
|
||||
return ba;
|
||||
}
|
||||
|
||||
|
||||
QByteArray QFontSubset::widthArray() const
|
||||
{
|
||||
Q_ASSERT(!widths.isEmpty());
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ public:
|
|||
QByteArray widthArray() const;
|
||||
QByteArray createToUnicodeMap() const;
|
||||
QList<int> getReverseMap() const;
|
||||
QByteArray glyphName(unsigned int glyph, const QList<int> &reverseMap) const;
|
||||
|
||||
static QByteArray glyphName(unsigned short unicode, bool symbol);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue