design

package module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLabelFontFace font.Face
View Source
var DefaultTitleFontFace font.Face

Functions

func FindFontFile

func FindFontFile(family string, style string) (string, error)

func LoadTrueTypeFont

func LoadTrueTypeFont(filename string) (*truetype.Font, error)

Types

type EdgeInsets

type EdgeInsets struct {
	Top    float64
	Right  float64
	Bottom float64
	Left   float64
}

func (EdgeInsets) Horizontal

func (e EdgeInsets) Horizontal() float64

func (EdgeInsets) Vertical

func (e EdgeInsets) Vertical() float64

type TextBox

type TextBox struct {
	Content string
	Font    font.Face
}

func (TextBox) Height

func (t TextBox) Height() float64

func (TextBox) Lines

func (t TextBox) Lines() int

func (TextBox) Valid

func (t TextBox) Valid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL