mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
abc2801ff1
(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. |
||
---|---|---|
.. | ||
advance.go | ||
text_test.go | ||
text.go |