|
RenderStack 11.06.1
|
Public Member Functions | |
| FontInfo (XmlNode node) | |
Properties | |
| string | Face [get, set] |
| int | Size [get, set] |
| bool | Bold [get, set] |
| bool | Italic [get, set] |
| string | Charset [get, set] |
| bool | Unicode [get, set] |
| int | StretchH [get, set] |
| int | Smooth [get, set] |
| int | Aa [get, set] |
| int[] | Padding [get] |
| int[] | Spacing [get] |
| int | Outline [get, set] |
Definition at line 42 of file FontStyle.cs.
| RenderStack.UI.FontStyle.FontInfo.FontInfo | ( | XmlNode | node | ) |
Definition at line 59 of file FontStyle.cs.
{
Face = node.Attributes["face"].Value;
Size = int.Parse(node.Attributes["size"].Value);
Bold = int.Parse(node.Attributes["bold"].Value) != 0;
Italic = int.Parse(node.Attributes["italic"].Value) != 0;
Charset = node.Attributes["charset"].Value;
Unicode = int.Parse(node.Attributes["unicode"].Value) != 0;
StretchH = int.Parse(node.Attributes["stretchH"].Value);
Smooth = int.Parse(node.Attributes["smooth"].Value);
Aa = int.Parse(node.Attributes["aa"].Value);
string[] paddingStr = node.Attributes["padding"].Value.Split(",".ToCharArray());
for(int i = 0; i < 4; ++i)
Padding[i] = int.Parse(paddingStr[i]);
string[] spacingStr = node.Attributes["spacing"].Value.Split(",".ToCharArray());
for(int i = 0; i < 2; ++i)
Spacing[i] = int.Parse(spacingStr[i]);
Outline = int.Parse(node.Attributes["outline"].Value);
}
string RenderStack.UI.FontStyle.FontInfo.Face [get, set] |
Definition at line 46 of file FontStyle.cs.
int RenderStack.UI.FontStyle.FontInfo.Size [get, set] |
Definition at line 47 of file FontStyle.cs.
bool RenderStack.UI.FontStyle.FontInfo.Bold [get, set] |
Definition at line 48 of file FontStyle.cs.
bool RenderStack.UI.FontStyle.FontInfo.Italic [get, set] |
Definition at line 49 of file FontStyle.cs.
string RenderStack.UI.FontStyle.FontInfo.Charset [get, set] |
Definition at line 50 of file FontStyle.cs.
bool RenderStack.UI.FontStyle.FontInfo.Unicode [get, set] |
Definition at line 51 of file FontStyle.cs.
int RenderStack.UI.FontStyle.FontInfo.StretchH [get, set] |
Definition at line 52 of file FontStyle.cs.
int RenderStack.UI.FontStyle.FontInfo.Smooth [get, set] |
Definition at line 53 of file FontStyle.cs.
int RenderStack.UI.FontStyle.FontInfo.Aa [get, set] |
Definition at line 54 of file FontStyle.cs.
int [] RenderStack.UI.FontStyle.FontInfo.Padding [get] |
Definition at line 55 of file FontStyle.cs.
int [] RenderStack.UI.FontStyle.FontInfo.Spacing [get] |
Definition at line 56 of file FontStyle.cs.
int RenderStack.UI.FontStyle.FontInfo.Outline [get, set] |
Definition at line 57 of file FontStyle.cs.
1.7.4