Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FontConfig ¶
FontConfig ...
type TrueTypeFont ¶
TrueTypeFont ...
func LoadFont ¶
func LoadFont(fontFile string) (*TrueTypeFont, error)
LoadFont loads a font file and returns *truetype.Font.
func (*TrueTypeFont) GetMetrics ¶
func (fo *TrueTypeFont) GetMetrics(fc *FontConfig) font.Metrics
GetMetrics gets font metrics by options.
Click to show internal directories.
Click to hide internal directories.