Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
QByteArray width;
QPdf::ByteStream s(&width);
- QFixed scale = QFixed(1000)/emSquare;
+ static const QFixed scale = QFixed(1000)/QFixed(2048);
QFixed defWidth = widths[0];
//qDebug("defWidth=%d, scale=%f", defWidth.toInt(), scale.toReal());
QFontEngine::Properties properties = fontEngine->properties();
// initialize some stuff needed in createWidthArray
- emSquare = 2048;
widths.resize(nGlyphs());
// head table
mutable int downloaded_glyphs;
mutable bool standard_font;
int nGlyphs() const { return glyph_indices.size(); }
- mutable QFixed emSquare;
mutable QVector<QFixed> widths;
};