font: rename GetSize, and GetFrameIndex -> Size, FrameIndex

This commit is contained in:
M. Sz 2021-02-17 08:38:41 +01:00
parent 9f47ed4b35
commit 4243a1f6b1
1 changed files with 4 additions and 4 deletions

View File

@ -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
}