OpenDiablo2/d2common/d2interface/font.go

13 lines
264 B
Go

package d2interface
import (
"image/color"
)
// Font is a graphical representation associated with a set of glyphs.
type Font interface {
SetColor(c color.Color)
GetTextMetrics(text string) (width, height int)
RenderText(text string, target Surface) error
}