diff --git a/d2common/d2fileformats/d2font/font.go b/d2common/d2fileformats/d2font/font.go index e916cde1..fd952b46 100644 --- a/d2common/d2fileformats/d2font/font.go +++ b/d2common/d2fileformats/d2font/font.go @@ -35,13 +35,13 @@ func (fg *fontGlyph) setHeight(h int) { fg.height = h } -// GetSize returns glyph's size -func (fg *fontGlyph) GetSize() (w, h int) { +// Size returns glyph's size +func (fg *fontGlyph) Size() (w, h int) { return fg.width, fg.height } -// GetFrameIndex returns glyph's frame -func (fg *fontGlyph) GetFrameIndex() int { +// FrameIndex returns glyph's frame +func (fg *fontGlyph) FrameIndex() int { return fg.frame }