Wiki > TV3D65 Index > TVScreen2DText
NormalFont_Create
DESCRIPTION
-This page has been generated automatically. Please improve it by adding a description and additional information.
DECLARATION
| VB.NET | NormalFont_Create(sUserFont As String , sFontName As String , iSize As Integer , bBold As Boolean , bUnderlined As Boolean , bItalic As Boolean) As Integer |
| C++ | int NormalFont_Create(char* sUserFont , char* sFontName , int iSize , bool bBold , bool bUnderlined , bool bItalic ) |
PARAMETERS
| NAME | OPTIONAL | DESCRIPTION |
| sUserFont | No | sUserFont description |
| sFontName | No | sFontName description |
| iSize | No | iSize description |
| bBold | No | bBold description |
| bUnderlined | No | bUnderlined description |
| bItalic | No | bItalic description |
RETURN VALUE
| Integer | Description of what the return value means. |
EXAMPLES
'VB.NET example
'Integers used to store the font
Dim MenuFont, MenuFont_1 As Integer
'Assign the fonts
MenuFont = Text.NormalFont_Create("Miram Fixed", "Miram Fixed", 15, False, False, False)
MenuFont_1 = Text.NormalFont_Create("Trebuchet MS", "Trebuchet MS", 28, True, False, False)
'Using the Fonts
Text.Action_BeginText()
Text.TextureFont_DrawText("Hello world !", 10, 75, TVglobal.RGBA(1, 0, 0, 1), MenuFont)
Text.TextureFont_DrawText("Hello world !", 10, 75, TVglobal.RGBA(1, 0, 0, 1), MenuFont_1)
Text.Action_EndText()
TIPS
- Please add any notes or tips for this method.