mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-06 11:34:15 -04:00
* Removing Clone of Font() since all material is sharable, Fixes #515 * Removed Clone() from the Font interface, as deep copies are not needed.
13 lines
264 B
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
|
|
}
|