terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Graphics.SpriteFont Class Referencesealed
+ Collaboration diagram for Microsoft.Xna.Framework.Graphics.SpriteFont:

Classes

struct  CharacterRegion
 
struct  CharacterSource
 
class  CharComparer
 
class  Errors
 
struct  Glyph
 

Public Member Functions

 SpriteFont ()
 
 SpriteFont (Texture2D[] textures, SpriteFont.Glyph[] glyphs, int lineSpacing, float spacing, char? defaultCharacter)
 
Dictionary< char, SpriteFont.GlyphGetGlyphs ()
 
Vector2 MeasureString (string text)
 
int GetMaxCharacterIndex (string text, int startIndex, int endIndex, float scale, float maxWidth)
 
Vector2 MeasureString (string text, int startIndex, int endIndex)
 
Vector2 MeasureString (StringBuilder text, int startIndex, int endIndex)
 
Vector2 MeasureString (StringBuilder text)
 
bool HasCharacter (char c)
 
string CreateWrappedText (string text, float maxWidth)
 
string CreateWrappedText (string text, float maxWidth, CultureInfo culture)
 
SpriteFont.Glyph GetCharacterMetrics (char character)
 

Package Functions

void MeasureMaxString (ref SpriteFont.CharacterSource text, out int lastCharacter, float maxWidth, float scale)
 
void MeasureString (ref SpriteFont.CharacterSource text, out Vector2 size)
 
bool TryGetGlyphIndex (char c, out int index)
 
int GetGlyphIndexOrDefault (char c)
 

Properties

SpriteFont.Glyph[] Glyphs [get, set]
 
Texture2D[] Textures [get, set]
 
char? DefaultCharacter [get, set]
 
int LineSpacing [get, set]
 
float Spacing [get, set]
 

Private Attributes

readonly SpriteFont.Glyph[] _glyphs
 
Dictionary< char, int > _glyphIndex
 
char? _defaultCharacter
 
int _defaultGlyphIndex
 
readonly Texture2D[] _textures
 
int< LineSpacingk__BackingField
 
float< Spacingk__BackingField
 

Detailed Description

Definition at line 26 of file SpriteFont.cs.


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