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
public int getLineHeight(int ch) {
cacheChar(ch);
public int getLineHeight() {
return lineHeight;
}

View File

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

View File

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