Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct { Name string Ascent int // needn't be present in the font Descent int // needn't be present in the font // contains filtered or unexported fields }
Font represents a particular bitmap font.
func (*Font) BoundString ¶
BoundString measures the text's bounds when drawn along the X axis for the baseline. Also returns the total advance.
func (*Font) DrawString ¶
DrawString draws the specified text string onto dst horizontally along the baseline starting at dp, using black color.
Click to show internal directories.
Click to hide internal directories.