|
| 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) |
|
|
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...
|
|
Definition at line 14 of file MyFont.cs.
VRageRender.MyFont.MyFont |
( |
string |
fontFilePath, |
|
|
int |
spacing = 1 |
|
) |
| |
|
inline |
Create a new font from the info in the specified font descriptor (XML) file
Definition at line 64 of file MyFont.cs.
int VRageRender.MyFont.CalcKern |
( |
char |
chLeft, |
|
|
char |
chRight |
|
) |
| |
|
inlineprotected |
bool VRageRender.MyFont.CanUseReplacementCharacter |
( |
char |
c | ) |
|
|
inlineprotected |
bool VRageRender.MyFont.CanWriteOrReplace |
( |
ref char |
c | ) |
|
|
inlineprotected |
int VRageRender.MyFont.ComputeCharsThatFit |
( |
StringBuilder |
text, |
|
|
float |
scale, |
|
|
float |
maxTextWidth |
|
) |
| |
|
inline |
float VRageRender.MyFont.ComputeScaledAdvanceWithKern |
( |
char |
c, |
|
|
char |
cLast, |
|
|
float |
scale |
|
) |
| |
|
inlineprotected |
Vector2 VRageRender.MyFont.MeasureString |
( |
StringBuilder |
text, |
|
|
float |
scale |
|
) |
| |
|
inline |
float VRageRender.MyFont.Depth = 0.0f |
The depth at which to draw the font
Definition at line 57 of file MyFont.cs.
const char VRageRender.MyFont.ELLIPSIS = '…' |
|
protected |
bool VRageRender.MyFont.KernEnabled = true |
Enable / disable kerning of adjacent character pairs.
Definition at line 42 of file MyFont.cs.
readonly string VRageRender.MyFont.m_fontDirectory |
|
protected |
readonly Dictionary<char, MyGlyphInfo> VRageRender.MyFont.m_glyphInfoByChar = new Dictionary<char, MyGlyphInfo>() |
|
protected |
readonly Dictionary<KernPair, sbyte> VRageRender.MyFont.m_kernByPair = new Dictionary<KernPair, sbyte>(m_kernPairComparer) |
|
protected |
const char VRageRender.MyFont.NEW_LINE = '\n' |
const char VRageRender.MyFont.REPLACEMENT_CHARACTER = '\u25A1' |
|
protected |
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)
Definition at line 20 of file MyFont.cs.
int VRageRender.MyFont.Spacing = 0 |
This is artificial spacing in between two characters (in pixels). Using it we can make spaces wider or narrower
Definition at line 37 of file MyFont.cs.
int VRageRender.MyFont.Baseline |
|
get |
Distance from top of font to the baseline
Definition at line 47 of file MyFont.cs.
int VRageRender.MyFont.LineHeight |
|
get |
Distance from top to bottom of the font
Definition at line 52 of file MyFont.cs.
The documentation for this class was generated from the following file: