zntg/ui/font.go
Sander Schobers 19daffd110 Added UI elements.
Reversed order of operands when comparing with nil/0 .
2019-03-05 21:52:18 +01:00

12 lines
157 B
Go

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