The TBitmapFont object works from BMF Files, which are created using a tool called BitmapFontEd available at
http://www.noddybox.demon.co.uk/free/index-csharp.html
Note that when colours are referenced they simply modify the colours in the font images as SetColor() would do on a norml image.
When drawing characters the current scale, alpha and rotation settings are applied.
Draws txt at the supplied x,y co-ordinates. red,green and blue control the colour.
Draws txt at the supplied x,y co-ordinates in white.
Draws txt centred at the supplied y co-ordinate. red,green and blue control the colour.
Draws txt centred at the supplied y co-ordinate in white.
Returns: The length of the string txt in pixels.
The current scale settings are taken into account.
Returns: The height of the string txt in pixels.
The current scale settings are taken into account.
Returns: The width in pixels of the largest character in the font.
Returns: The height in pixels of the largest character in the font.
Returns: The created font, or null if the BMF file couldn't be loaded.
The image_flags are passed onto CreateImage() when the images for the font are being created.
Framework | Simple Bitmap Font Routines |
Copyright | Public Domain |
Author | Ian Cowburn |
Version | $Revision$ |