|
|
|
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.coord.Vec;
|
|
|
|
import mightypork.utils.math.coord.VecView;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 VecView getNeededSpace(String str)
|
|
|
|
{
|
|
|
|
return Vec.ZERO;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getHeight()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getWidth(String text)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getSize()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|