Jules, is there a better way of rendering glyph runs rather than drawing them one by one. For now I am calling
context.drawGlyph() for each glyph:
LowLevelGraphicsContext& context = pg->target().getInternalContext(); context.setFont ( ... ); context.setFill ( ... ); float x = 0; for(uint i = 0; i < gr.glyph_count; ++i) { context.drawGlyph (tf.glyph_indices[gr.glyph_start + i] , AffineTransform::translation (at.x + x, at.y)); x += tf.glyph_justified_advances[gr.glyph_start + i]; }
Ideally it should be something like context.drawGlyphs( glyphIndices, glyphAdvances, glyphOffsets ).
Something close to ID2D1RenderTarget::DrawGlyphRun() to be short.
Or did I miss some method that already exists?