Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Graphics.SpriteFont Class Referencesealed

Classes

struct  StringProxy
 

Public Member Functions

Vector2 MeasureString (string text)
 
Vector2 MeasureString (StringBuilder text)
 

Package Functions

 SpriteFont (Texture2D texture, List< Rectangle > glyphs, List< Rectangle > cropping, List< char > charMap, int lineSpacing, float spacing, List< Vector3 > kerning, char? defaultCharacter)
 
void InternalDraw (ref StringProxy text, SpriteBatch spriteBatch, Vector2 textblockPosition, Color color, float rotation, Vector2 origin, ref Vector2 scale, SpriteEffects spriteEffects, float depth)
 

Properties

int LineSpacing [get, set]
 
float Spacing [get, set]
 
char? DefaultCharacter [get, set]
 
ReadOnlyCollection< char > Characters [get]
 

Private Member Functions

Vector2 InternalMeasure (ref StringProxy text)
 
int GetIndexForCharacter (char character)
 

Private Attributes

Texture2D textureValue
 
List< RectangleglyphData
 
List< RectanglecroppingData
 
List< char > characterMap
 
List< Vector3kerning
 
int lineSpacing
 
float spacing
 
char? defaultCharacter
 
ReadOnlyCollection< char > characters
 

Detailed Description

Definition at line 9 of file SpriteFont.cs.


The documentation for this class was generated from the following file: