mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
f18ede6e66
* 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
|
|
}
|