QFontSubset: remove unused glyphName() overload

Amends b7f3253f906594ec1971fbea3a5760dcf8f01cdd(!).

Change-Id: I39dd2efee241afc2a57d0eb614d3a396fef95b9e
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 215f0e4ea631e6abe6653c80fb375d806b78c158)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2022-07-07 10:35:05 +02:00 committed by Qt Cherry-pick Bot
parent e6e3cc82a0
commit faa9cf9749
2 changed files with 0 additions and 19 deletions

View File

@ -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());

View File

@ -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);