mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-06 00:26:40 -05: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
|
|
}
|