summaryrefslogtreecommitdiffstats
path: root/src/makeqpf/qpf2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/makeqpf/qpf2.cpp')
-rw-r--r--src/makeqpf/qpf2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/makeqpf/qpf2.cpp b/src/makeqpf/qpf2.cpp
index 3221dc8d6..06cc6a303 100644
--- a/src/makeqpf/qpf2.cpp
+++ b/src/makeqpf/qpf2.cpp
@@ -490,8 +490,8 @@ void QPF::addGlyphs(QFontEngine *fe, const QList<CharacterRange> &ranges)
QByteArray glyphs;
if (options & RenderGlyphs) {
// this is only a rough estimation
- glyphs.reserve(glyphCount
- * (sizeof(QFontEngineQPF::Glyph)
+ glyphs.reserve(glyphCount
+ * (sizeof(QFontEngineQPF::Glyph)
+ qRound(fe->maxCharWidth() * (fe->ascent() + fe->descent()).toReal())));
QGlyphLayoutArray<10> layout;
@@ -638,7 +638,7 @@ const uchar *QPF::dumpHeader(const uchar *data)
{
const QFontEngineQPF::Header *header = reinterpret_cast<const QFontEngineQPF::Header *>(data);
qDebug() << "Header:";
- qDebug() << "magic ="
+ qDebug() << "magic ="
<< header->magic[0]
<< header->magic[1]
<< header->magic[2]