zntg/ui/font.go

19 lines
233 B
Go
Raw Permalink Normal View History

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