Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Line ¶
Line draws the given line of text at the given position on the current Image in the given Font. The color is specified as an RGB value with no alpha information. TODO pango seems to do this vertically offset?
Types ¶
type Font ¶
type Font interface { // Close frees resources allocated to the Font. Close() // contains filtered or unexported methods }
Font represents a font. A Font is created by passing a FontSpec to NewFont().
type FontSpec ¶
type FontSpec struct { Family string Size uint // in points Bold bool // TODO can it be a factor? if not, what constitutes bold? Italic bool // italic == oblique if current backend differentiates Vertical bool // strictly gravity east/rotation 90 degrees clockwise? TODO Monospace bool }
FontSpec encodes information about a font.
Click to show internal directories.
Click to hide internal directories.