Documentation ¶
Overview ¶
Package fonts provides a cross-platform interface to list and load font data
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FontPaths = []string{
"$HOME/.fonts/**/*",
"/usr/local/share/fonts/**/*",
"/usr/share/fonts/**/*",
"/usr/X11/lib/X11/fonts/**/*",
}
The list of font paths on Linux this could be improved to use fontconfig
View Source
var ValidExtensions = []string{"ttf", "otf"}
ValidExtensions is the list of file extensions to consider font files
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.