2019-03-05 20:52:18 +00:00
|
|
|
package ui
|
|
|
|
|
|
|
|
import (
|
2019-03-12 18:43:52 +00:00
|
|
|
"image/color"
|
|
|
|
|
2019-03-05 20:52:18 +00:00
|
|
|
"opslag.de/schobers/geom"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Font interface {
|
2020-05-15 13:42:24 +00:00
|
|
|
Destroy() error
|
2019-03-05 20:52:18 +00:00
|
|
|
Height() float32
|
|
|
|
Measure(t string) geom.RectangleF32
|
|
|
|
WidthOf(t string) float32
|
|
|
|
}
|
2019-03-12 18:43:52 +00:00
|
|
|
|
|
|
|
type FontStyle struct {
|
|
|
|
Name string
|
|
|
|
Color color.Color
|
|
|
|
}
|