ebiten/text
Peter Wunder abc2801ff1
text: Add MeasureString method (#1152)
(sorta-kinda continuation from #1151)

This PR adds a MeasureString(string, font.Face) method next to the Draw() method in Ebiten's
text package. It should work with any supported font.Face, even "non-standard" faces like
those produced by packages like https://github.com/AndreKR/multiface. MeasureString's code
was adapted from the Draw method, so it's just as reliable.
2020-05-13 18:03:39 +09:00
..
advance.go text: Cache GlyphAdvance result 2018-02-18 21:38:48 +09:00
text_test.go Add testing package 2020-04-01 18:10:48 +09:00
text.go text: Add MeasureString method (#1152) 2020-05-13 18:03:39 +09:00