Documentation
¶
Index ¶
- Variables
- func GetDefaultFontFace(size float64) (font.Face, error)
- func GetFontFace(ft *opentype.Font, size float64) (font.Face, error)
- func LoadDefaultFont() (*opentype.Font, error)
- func LoadFont(path string, orDefault bool) (*opentype.Font, error)
- func LoadFontFS(path string) (*opentype.Font, error)
- func LoadImage(path string) (image.Image, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultUIFontPath = "/usr/share/fonts/WenQuanYi Micro Hei.ttf"
View Source
var FS embed.FS
Functions ¶
func LoadDefaultFont ¶
func LoadFontFS ¶
LoadFontFS loads a font from the embedded filesystem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.