richardwilkes / unison

A unified graphical user experience toolkit for Go desktop applications
Mozilla Public License 2.0
202 stars 10 forks source link

Add support for drawing glyph runs with x positions #27

Closed pekim closed 1 year ago

pekim commented 1 year ago

I needed to be able to draw runs of glyphs with specific horizontal positions.

New api functions

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.

richardwilkes commented 1 year ago

If you'd like me to create a release tag for this and the other PR I merged for you recently, let me know.