Skip to content

Commit

Permalink
text/v2: add comments about size
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Sep 29, 2024
1 parent 1c475ef commit 03faba1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions text/v2/gotext.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 03faba1

Please sign in to comment.