154 if (
text.Length == 0)
164 for (
int i = 0; i <
text.Length; i++)
190 zero.X += vector.X +
vector.Y;
225 for (
int i = 0; i <
text.Length; i++)
253 vector.X +=
spacing * scale.X * (float)num;
255 vector.X += vector2.X * scale.X * (float)num;
267 position.X += (float)
rectangle.X * scale.X;
268 position.Y += (float)
rectangle.Y * scale.Y;
273 vector.X += (vector2.Y +
vector2.Z) * scale.X * (
float)num;
280 int num2 = characterMap.Count - 1;
static string CharacterNotInFont
void Draw(Texture2D texture, Vector2 position, Color color)
List< Rectangle > glyphData
int GetIndexForCharacter(char character)
Vector2 InternalMeasure(ref StringProxy text)
Vector2 MeasureString(string text)
List< Rectangle > croppingData
ReadOnlyCollection< char > Characters
SpriteFont(Texture2D texture, List< Rectangle > glyphs, List< Rectangle > cropping, List< char > charMap, int lineSpacing, float spacing, List< Vector3 > kerning, char? defaultCharacter)
Vector2 MeasureString(StringBuilder text)
ReadOnlyCollection< char > characters
void InternalDraw(ref StringProxy text, SpriteBatch spriteBatch, Vector2 textblockPosition, Color color, float rotation, Vector2 origin, ref Vector2 scale, SpriteEffects spriteEffects, float depth)
List< char > characterMap
static CultureInfo CurrentCulture
static byte Max(byte val1, byte val2)
StringBuilder textBuilder
StringProxy(StringBuilder text)
static Matrix Multiply(Matrix matrix1, Matrix matrix2)
static Matrix CreateTranslation(Vector3 position)
static Matrix CreateRotationZ(float radians)
static Vector2 Transform(Vector2 position, Matrix matrix)