1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-05 14:59:09 +01:00
MLEM/Tests/Stub/StubFont.cs

36 lines
1.5 KiB
C#
Raw Normal View History

2020-07-31 17:14:25 +02:00
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MLEM.Font;
namespace Tests.Stub {
public class StubFont : GenericFont {
public override GenericFont Bold { get; } = null;
public override GenericFont Italic { get; } = null;
public override float LineHeight { get; } = 1;
public override void DrawString(SpriteBatch batch, string text, Vector2 position, Color color) {
}
public override void DrawString(SpriteBatch batch, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth) {
}
public override void DrawString(SpriteBatch batch, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth) {
}
public override void DrawString(SpriteBatch batch, StringBuilder text, Vector2 position, Color color) {
}
public override void DrawString(SpriteBatch batch, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth) {
}
public override void DrawString(SpriteBatch batch, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth) {
}
protected override Vector2 MeasureChar(char c) {
return Vector2.One;
}
}
}