Space Engineers
List of all members
VRageRender.MyRenderFont Class Reference
Inheritance diagram for VRageRender.MyRenderFont:
VRageRender.MyFont

Additional Inherited Members

- Public Member Functions inherited from VRageRender.MyFont
 MyFont (string fontFilePath, int spacing=1)
 Create a new font from the info in the specified font descriptor (XML) file More...
 
Vector2 MeasureString (StringBuilder text, float scale)
 
int ComputeCharsThatFit (StringBuilder text, float scale, float maxTextWidth)
 
- Public Attributes inherited from VRageRender.MyFont
const char NEW_LINE = '\n'
 
int Spacing = 0
 This is artificial spacing in between two characters (in pixels). Using it we can make spaces wider or narrower More...
 
bool KernEnabled = true
 Enable / disable kerning of adjacent character pairs. More...
 
float Depth = 0.0f
 The depth at which to draw the font More...
 
- Protected Member Functions inherited from VRageRender.MyFont
bool CanWriteOrReplace (ref char c)
 
float ComputeScaledAdvanceWithKern (char c, char cLast, float scale)
 
bool CanUseReplacementCharacter (char c)
 
int CalcKern (char chLeft, char chRight)
 
- Protected Attributes inherited from VRageRender.MyFont
const char REPLACEMENT_CHARACTER = '\u25A1'
 Replacement character shown when we don't have something in our texture. Normally, this would be , but BMFontGen refuses to generate it, so I put its glyph at (empty square) More...
 
const char ELLIPSIS = '…'
 
readonly Dictionary< int, MyBitmapInfom_bitmapInfoByID = new Dictionary<int, MyBitmapInfo>()
 
readonly Dictionary< char, MyGlyphInfom_glyphInfoByChar = new Dictionary<char, MyGlyphInfo>()
 
readonly Dictionary< KernPair, sbyte > m_kernByPair = new Dictionary<KernPair, sbyte>(m_kernPairComparer)
 
readonly string m_fontDirectory
 
- Properties inherited from VRageRender.MyFont
int Baseline [get]
 Distance from top of font to the baseline More...
 
int LineHeight [get]
 Distance from top to bottom of the font More...
 

Detailed Description

Definition at line 13 of file MyRenderFont.cs.


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