zntg/ui/font.go

20 lines
250 B
Go
Raw Permalink Normal View History

package ui
import (
"image/color"
"opslag.de/schobers/geom"
)
type Font interface {
Destroy() error
Height() float32
Measure(t string) geom.RectangleF32
WidthOf(t string) float32
}
type FontStyle struct {
Name string
Color color.Color
}