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
|
@Override
|
||||||
public int getLineHeight(int ch) {
|
public int getLineHeight() {
|
||||||
cacheChar(ch);
|
|
||||||
return lineHeight;
|
return lineHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue