I needed to be able to draw runs of glyphs with specific horizontal positions.
New api functions
Font.TextBlobPosH to create a TextBlob with horizontally positioned glyphs
Canvas.DrawTextBlob to draw text from a blob
The Windows implementation of TextBlobBuilderAllocRunPosH is untested, as I don't have a Windows environment. I wrote it following a similar pattern to the existing TextBlobBuilderAllocRun function.
I needed to be able to draw runs of glyphs with specific horizontal positions.
New api functions
Font.TextBlobPosH
to create aTextBlob
with horizontally positioned glyphsCanvas.DrawTextBlob
to draw text from a blobThe Windows implementation of
TextBlobBuilderAllocRunPosH
is untested, as I don't have a Windows environment. I wrote it following a similar pattern to the existingTextBlobBuilderAllocRun
function.