Class BitMapChar |
Description: | This class represents a font character. |
Details: | This class represents a font character and provides methods to load and unload the character images on dynamic fonts, and provide methods to get the location of the char in the packed texture on packed fonts. Any character in any font, is an instance of this class. Beaware that this font represent a character layer. That is, each character is a Face character, a Border character or a Shadow character.
|
Table of contents: | Methods: Fields:
- drawingMetrics ( Field drawingMetrics:= new BitMapCharMetrics )
- image ( Field image:Image )
- packedFontIndex ( Field packedFontIndex:int )
- packedPosition ( Field packedPosition:drawingpoint.DrawingPoint = new drawingpoint.DrawingPoint )
- packedSize ( Field packedSize:drawingpoint.DrawingPoint = new drawingpoint.DrawingPoint )
|
Method CharImageLoaded:Bool() | Description: | This method will return true or false if the character image has been loaded to VRam on dynamic fonts. | Returns: | Bool | Details: | Notice that this method will return always FALSE for packed fonts.
|
|
Method LoadCharImage() | Description: | This method will force a dynamic font to load the character image to VRam. | Returns: | Int |
|
Method UnloadCharImage() | Description: | This method will force a dynamic font to unload the character image from VRam. | Returns: | Int |
|
Field drawingMetrics:= new BitMapCharMetrics | Description: | This field contains the drawing metrics information of the character. That is, width, height, space to next character, etc. |
|
Field image:Image | Description: | This field contains the character image on dynamic fonts. |
|
Field packedFontIndex:int | Description: | This field contains the texture index on packed fonts. (advanced use) |
|
Field packedPosition:drawingpoint.DrawingPoint = new drawingpoint.DrawingPoint | Description: | This field contains the X and Y offset of the character in the packed texture, on non dynamic fonts. |
|
Field packedSize:drawingpoint.DrawingPoint = new drawingpoint.DrawingPoint | Description: | This field contains the width and height offset of the character in the packed texture, on non dynamic fonts. |
|