Свойство | Type | Description | |
---|---|---|---|
DictFontAlias | string>.Dictionary | ||
ListFonts | List |
Méthode | Description | |
---|---|---|
ClearFontCache ( ) : void | ||
Dispose ( ) : void |
Disposes all GUIFonts.
|
|
DrawText ( Microsoft.DirectX.Direct3D.Font fnt, float xpos, float ypos, Color color, string text, int maxWidth, int fontHeight ) : void | ||
GetFont ( int iFont ) : MediaPortal.GUI.Library.GUIFont |
Gets a GUIFont.
|
|
GetFont ( string strFontName ) : MediaPortal.GUI.Library.GUIFont |
Gets a GUIFont.
|
|
InitializeDeviceObjects ( ) : void |
Initializes the device objects of the GUIFonts.
|
|
LoadFonts ( string strFilename ) : bool |
Loads the fonts from a file.
|
|
MeasureText ( Microsoft.DirectX.Direct3D.Font fnt, string text, float &textwidth, float &textheight, int fontSize ) : void | ||
MeasureText ( string text, float &textwidth, float &textheight, int fontSize ) : void |
Uses GDI+ Graphics to render a given text and measure the it's size
|
|
Present ( ) : void | ||
SetDevice ( ) : void |
Sets the device and the FVF.
|
|
SetDeviceNull ( ) : void |
Méthode | Description | |
---|---|---|
CachedSystemFont ( int fontSize ) : System.Drawing.Microsoft.DirectX.Direct3D.Font | ||
DrawTextUsingTexture ( FontManagerDrawText draw, int fontSize ) : void | ||
GUIFontManager ( ) : System |
public static DrawText ( Microsoft.DirectX.Direct3D.Font fnt, float xpos, float ypos, Color color, string text, int maxWidth, int fontHeight ) : void | ||
fnt | Microsoft.DirectX.Direct3D.Font | |
xpos | float | |
ypos | float | |
color | Color | |
text | string | |
maxWidth | int | |
fontHeight | int | |
Résultat | void |
public static GetFont ( int iFont ) : MediaPortal.GUI.Library.GUIFont | ||
iFont | int | The font number |
Résultat | MediaPortal.GUI.Library.GUIFont |
public static GetFont ( string strFontName ) : MediaPortal.GUI.Library.GUIFont | ||
strFontName | string | The name of the font |
Résultat | MediaPortal.GUI.Library.GUIFont |
public static InitializeDeviceObjects ( ) : void | ||
Résultat | void |
public static LoadFonts ( string strFilename ) : bool | ||
strFilename | string | The filename from where the fonts are loaded. |
Résultat | bool |
public static MeasureText ( Microsoft.DirectX.Direct3D.Font fnt, string text, float &textwidth, float &textheight, int fontSize ) : void | ||
fnt | Microsoft.DirectX.Direct3D.Font | |
text | string | |
textwidth | float | |
textheight | float | |
fontSize | int | |
Résultat | void |
public static MeasureText ( string text, float &textwidth, float &textheight, int fontSize ) : void | ||
text | string | |
textwidth | float | |
textheight | float | |
fontSize | int | |
Résultat | void |
protected static Dictionary |
||
Résultat | string>.Dictionary |