Documentation ¶
Overview ¶
Package typography handles printing text on a graphical display.
Index ¶
- func SplitToLines(measure WidthMeasure, text string, maxWidth float64) (result []string)
- type Edge
- type Style
- func (s *Style) BackColor(col color.Color) *Style
- func (s *Style) Bounds(line string) image.Rectangle
- func (s *Style) Colors(foreColor, backColor color.Color) *Style
- func (s *Style) Edge(edge Edge) *Style
- func (s *Style) ForeColor(col color.Color) *Style
- func (s *Style) LineHeight() float64
- func (s *Style) Render(line string, pos image.Point)
- func (s *Style) RenderOn(target gfx.Surface32Bit, line string, pos image.Point)
- func (s *Style) StringWidth(line string) float64
- type WidthMeasure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitToLines ¶
func SplitToLines(measure WidthMeasure, text string, maxWidth float64) (result []string)
Types ¶
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
func (*Style) LineHeight ¶
func (*Style) StringWidth ¶
type WidthMeasure ¶
Click to show internal directories.
Click to hide internal directories.