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:
parent
e6e3cc82a0
commit
faa9cf9749
@ -78,24 +78,6 @@ QByteArray QFontSubset::glyphName(unsigned short unicode, bool symbol)
|
|||||||
return buffer;
|
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
|
QByteArray QFontSubset::widthArray() const
|
||||||
{
|
{
|
||||||
Q_ASSERT(!widths.isEmpty());
|
Q_ASSERT(!widths.isEmpty());
|
||||||
|
@ -41,7 +41,6 @@ public:
|
|||||||
QByteArray widthArray() const;
|
QByteArray widthArray() const;
|
||||||
QByteArray createToUnicodeMap() const;
|
QByteArray createToUnicodeMap() const;
|
||||||
QList<int> getReverseMap() const;
|
QList<int> getReverseMap() const;
|
||||||
QByteArray glyphName(unsigned int glyph, const QList<int> &reverseMap) const;
|
|
||||||
|
|
||||||
static QByteArray glyphName(unsigned short unicode, bool symbol);
|
static QByteArray glyphName(unsigned short unicode, bool symbol);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user