diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-07-07 10:35:05 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-07-08 22:14:51 +0200 |
commit | 215f0e4ea631e6abe6653c80fb375d806b78c158 (patch) | |
tree | f9381025eb748b025497570b005cca97c6bb0e4e | |
parent | 1d961491d817490da156769ddce6fce48a0bce4a (diff) |
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>
-rw-r--r-- | src/gui/text/qfontsubset.cpp | 18 | ||||
-rw-r--r-- | src/gui/text/qfontsubset_p.h | 1 |
2 files changed, 0 insertions, 19 deletions
diff --git a/src/gui/text/qfontsubset.cpp b/src/gui/text/qfontsubset.cpp index f28cc72258..44d117db26 100644 --- a/src/gui/text/qfontsubset.cpp +++ b/src/gui/text/qfontsubset.cpp @@ -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()); diff --git a/src/gui/text/qfontsubset_p.h b/src/gui/text/qfontsubset_p.h index 1cd24aa73d..01108dcc7f 100644 --- a/src/gui/text/qfontsubset_p.h +++ b/src/gui/text/qfontsubset_p.h @@ -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); |