isCP437 for fonts

This commit is contained in:
DaniTheSkunk 2022-10-09 01:02:58 +00:00
parent bb54dea3b2
commit 61c660c0ce
3 changed files with 11 additions and 0 deletions

View File

@ -81,6 +81,11 @@ public class FontTTF implements IFont {
return chars.get(ch).advance;
}
@Override
public boolean isCP437() {
return false;
}
@Override
public int getLineHeight(int ch) {
cacheChar(ch);

View File

@ -19,6 +19,11 @@ public class FontTileset implements IFont {
return charSize.getX();
}
@Override
public boolean isCP437() {
return true;
}
@Override
public int getLineHeight(int ch) {
return charSize.getY();

View File

@ -8,4 +8,5 @@ public interface IFont {
Vec2i getOffset(int ch);
ITexture getTexture(int ch);
int getXAdvance(int ch);
boolean isCP437();
}