Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HorizontalAlignment ¶
type HorizontalAlignment int
const ( Left HorizontalAlignment = -1 Center HorizontalAlignment = 0 Right HorizontalAlignment = 1 )
type TextLayout ¶
type TextSlot ¶
type TextSlot struct { Bounds image.Rectangle Font *truetype.Font MaxFontSize float64 HorizontalAlignment HorizontalAlignment VerticalAlignment VerticalAlignment TextColor color.Color OutlineColor color.Color AllUppercase bool }
func (*TextSlot) TextLayout ¶
func (s *TextSlot) TextLayout(text string) *TextLayout
type VerticalAlignment ¶
type VerticalAlignment int
const ( Top VerticalAlignment = -1 Middle VerticalAlignment = 0 Bottom VerticalAlignment = 1 )
Click to show internal directories.
Click to hide internal directories.