Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct { // name of the font Name string // weight for this variant of the font Weight string // source of the deflated font Source string // truetype parsed font Font *truetype.Font // contains filtered or unexported fields }
func ParseFont ¶
func ParseFont(deflatedFont deflated.DeflatedFont) *Font
parse an inflated font file to a Font struct
func (*Font) GetFontFace ¶
get the font face for a specific dpi and font size
uses a previously created font face if one exists for the dpi and size, otherwise creates a new one and stores it for future use
Click to show internal directories.
Click to hide internal directories.