From 03faba10b473b84fc8d54739250491439ec366f0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 30 Sep 2024 03:08:34 +0900 Subject: [PATCH] text/v2: add comments about size --- text/v2/gotext.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/text/v2/gotext.go b/text/v2/gotext.go index f26abe7cbbc1..db1b4a8df876 100644 --- a/text/v2/gotext.go +++ b/text/v2/gotext.go @@ -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).