text/v2: add comments about size

This commit is contained in:
Hajime Hoshi 2024-09-30 03:08:34 +09:00
parent 1c475eff78
commit 03faba10b4

View File

@ -48,6 +48,9 @@ type GoTextFace struct {
Direction Direction
// Size is the font size in pixels.
//
// This package creates glyph images for each size. Thus, gradual change of font size is not efficient.
// If you want to change the font size gradually, draw the text on an offscreen with a larger size and scale it down.
Size float64
// Language is a hint for a language (BCP 47).