changed IFont.getLineHeight to not require character
This commit is contained in:
parent
6f66d7391f
commit
6d6f4950ef
|
@ -87,8 +87,7 @@ public class FontTTF implements IFont {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getLineHeight(int ch) {
|
||||
cacheChar(ch);
|
||||
public int getLineHeight() {
|
||||
return lineHeight;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ public class FontTileset implements IFont {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int getLineHeight(int ch) {
|
||||
public int getLineHeight() {
|
||||
return charSize.getY();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue