void QFontEngine::addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int nGlyphs,
QPainterPath *path, QTextItem::RenderFlags flags)
{
- qreal x = positions[0].x.toReal();
- qreal y = positions[0].y.toReal();
QVarLengthGlyphLayoutArray g(nGlyphs);
for (int i = 0; i < nGlyphs; ++i) {
// TODO what to do with 'flags' ??
Q_UNUSED(flags);
- QFixed advanceX = QFixed::fromReal(x);
- QFixed advanceY = QFixed::fromReal(y);
+ QFixed advanceX = positions[0].x;
+ QFixed advanceY = positions[0].y;
for (int i=0; i < g.numGlyphs; ++i) {
glyph_metrics_t metrics = boundingBox(g.glyphs[i]);
if (metrics.width.value() == 0 || metrics.height.value() == 0) {