changed IFont.getLineHeight to not require character

This commit is contained in:
DaniTheSkunk 2022-12-13 03:30:48 +00:00
parent 6f66d7391f
commit 6d6f4950ef
3 changed files with 3 additions and 4 deletions

View File

@ -87,8 +87,7 @@ public class FontTTF implements IFont {
} }
@Override @Override
public int getLineHeight(int ch) { public int getLineHeight() {
cacheChar(ch);
return lineHeight; return lineHeight;
} }

View File

@ -15,7 +15,7 @@ public class FontTileset implements IFont {
} }
@Override @Override
public int getLineHeight(int ch) { public int getLineHeight() {
return charSize.getY(); return charSize.getY();
} }

View File

@ -4,7 +4,7 @@ import com.danitheskunk.skunkworks.Vec2i;
import com.danitheskunk.skunkworks.gfx.ITexture; import com.danitheskunk.skunkworks.gfx.ITexture;
public interface IFont { public interface IFont {
int getLineHeight(int ch); int getLineHeight();
Vec2i getMonospaceSize(); Vec2i getMonospaceSize();