Class SelDCFont
Direct Rendering Manager font related
Methods
| SelDCFont:SlantConst (slant) | transcode slant font capabilities |
| SelDCFont:WeightConst (Weight) | transcode Weight font capabilities |
| SelDCFont:createInternal (fontname, options) | Use internal font using a simplified interface |
| SelDCFont:createFreeType (fontname) | Load a Freetype font |
| SelDCFont:Release () | Release font - free all ressources |
| SelDCFont:destroy () | Release font - free all ressources |
Methods
- SelDCFont:SlantConst (slant)
-
transcode slant font capabilities
Parameters:
- slant string "NORMAL", "ITALIC", "OBLIQUE"
Returns:
-
int
value
- SelDCFont:WeightConst (Weight)
-
transcode Weight font capabilities
Parameters:
- Weight string "NORMAL", "BOLD"
Returns:
-
int
value
- SelDCFont:createInternal (fontname, options)
-
Use internal font using a simplified interface
Parameters:
- fontname strig "serif", "sans-serif", "cursive", "fantasy", "monospace"
- options table "slant" = One of SlantConst, "weight" = One of WeightConst
Returns:
-
SelDcFont
font
See also:
- SelDCFont:createFreeType (fontname)
-
Load a Freetype font
Parameters:
- fontname string full path to the TTF file
Returns:
-
SelDcFont
font
- SelDCFont:Release ()
- Release font - free all ressources
- SelDCFont:destroy ()
- Release font - free all ressources