QGlyphLayoutArray<10> glyphs;
int nglyphs = 9;
- engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0);
+ engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, QFontEngine::GlyphIndicesOnly);
// ### can nglyphs != 1 happen at all? Not currently I think
qreal lb;
engine->getGlyphBearings(glyphs.glyphs[0], &lb);
QGlyphLayoutArray<10> glyphs;
int nglyphs = 9;
- engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0);
+ engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, QFontEngine::GlyphIndicesOnly);
// ### can nglyphs != 1 happen at all? Not currently I think
qreal rb;
engine->getGlyphBearings(glyphs.glyphs[0], 0, &rb);
QGlyphLayoutArray<10> glyphs;
int nglyphs = 9;
- engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0);
+ engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, QFontEngine::GlyphIndicesOnly);
glyph_metrics_t gm = engine->boundingBox(glyphs.glyphs[0]);
return QRect(qRound(gm.x), qRound(gm.y), qRound(gm.width), qRound(gm.height));
}
QGlyphLayoutArray<10> glyphs;
int nglyphs = 9;
- engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0);
+ engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, QFontEngine::GlyphIndicesOnly);
// ### can nglyphs != 1 happen at all? Not currently I think
qreal lb;
engine->getGlyphBearings(glyphs.glyphs[0], &lb);
QGlyphLayoutArray<10> glyphs;
int nglyphs = 9;
- engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0);
+ engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, QFontEngine::GlyphIndicesOnly);
// ### can nglyphs != 1 happen at all? Not currently I think
qreal rb;
engine->getGlyphBearings(glyphs.glyphs[0], 0, &rb);
QGlyphLayoutArray<10> glyphs;
int nglyphs = 9;
- engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0);
+ engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, QFontEngine::GlyphIndicesOnly);
glyph_metrics_t gm = engine->boundingBox(glyphs.glyphs[0]);
return QRectF(gm.x.toReal(), gm.y.toReal(), gm.width.toReal(), gm.height.toReal());
}