isCP437 for fonts
This commit is contained in:
parent
bb54dea3b2
commit
61c660c0ce
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -8,4 +8,5 @@ public interface IFont {
|
|||
Vec2i getOffset(int ch);
|
||||
ITexture getTexture(int ch);
|
||||
int getXAdvance(int ch);
|
||||
boolean isCP437();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue