Sander Schobers
3591e22c97
- Fonts are now managed by context instead of the implementation specific renderers.
20 lines
250 B
Go
20 lines
250 B
Go
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
|
|
}
|