mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 15:07:26 +01:00
text/v2: add comments to CacheGlyphs
This commit is contained in:
parent
9449e0a8a6
commit
0da99e2c37
@ -255,6 +255,9 @@ func Measure(text string, face Face, lineSpacingInPixels float64) (width, height
|
||||
// Draw and AppendGlyphs automatically create and cache necessary glyphs, so usually you don't have to call CacheGlyphs explicitly.
|
||||
// If you really care about the performance, CacheGlyphs might be useful.
|
||||
//
|
||||
// CacheGlyphs is pretty heavy since it creates all the possible variations of glyphs.
|
||||
// Call CacheGlyphs only when you really need it.
|
||||
//
|
||||
// CacheGlyphs is concurrent-safe.
|
||||
func CacheGlyphs(text string, face Face) {
|
||||
var x, y float64
|
||||
|
Loading…
Reference in New Issue
Block a user