Closed hajimehoshi closed 2 months ago
Hi !
The bitmap selection is based on the XPpem
and YPpem
of the Face
struct. We do not set these fields, so you have to do it yourself (essentially because it is tied to the Input.Size
, which is user controlled).
You may also want to have a look at Font.BitmapSizes
, which list the actual sizes provided by the font file.
I see, I'll try!
I've succeeded to fetch bitmap data. Thank you!
Apparently, even if a font face embeds bitmap data for various sizes, embed bitmap glyphs don't change for any font sizes.
I used Sazanami-Gothic font that should embed various bitmap glyphs for various sizes.
I tested this program:
main.go
:go.mod
:The result was: