You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
643 B
50 lines
643 B
package mightypork.gamecore.render.fonts;
|
|
|
|
|
|
import mightypork.utils.math.color.RGB;
|
|
import mightypork.utils.math.coord.Coord;
|
|
|
|
|
|
/**
|
|
* Null font used where real resource could not be loaded.
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public class NullFont implements GLFont {
|
|
|
|
@Override
|
|
public void draw(String str, RGB color)
|
|
{
|
|
// nope
|
|
}
|
|
|
|
|
|
@Override
|
|
public Coord getNeededSpace(String str)
|
|
{
|
|
return Coord.zero();
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getGlyphHeight()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getWidth(String text)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getSize()
|
|
{
|
|
// TODO Auto-generated method stub
|
|
return 0;
|
|
}
|
|
|
|
}
|
|
|