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.
52 lines
767 B
52 lines
767 B
package mightypork.gamecore.render.fonts.impl;
|
|
|
|
|
|
import mightypork.gamecore.render.fonts.GLFont;
|
|
import mightypork.utils.logging.Log;
|
|
import mightypork.utils.math.color.RGB;
|
|
import mightypork.utils.math.vect.Vect;
|
|
import mightypork.utils.math.vect.VectView;
|
|
|
|
|
|
/**
|
|
* 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)
|
|
{
|
|
Log.w("Drawing with null font.");
|
|
}
|
|
|
|
|
|
@Override
|
|
public VectView getNeededSpace(String str)
|
|
{
|
|
return Vect.ZERO;
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getLineHeight()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getWidth(String text)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
@Override
|
|
public int getFontSize()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
}
|
|
|