ComponentRef

Font

Font

Defines a font that can be used to display text using the RenderText-component.

The fonts graphics must be defined in a bitmap and imported to the project using the BitmapFromFile-component. Select the font by setting the Font-property of a Material and then use the material with UseMaterial. Here are a couple of examples of bitmaps that can be used as fonts:

FirstChar=33, Height/Width=8, Borderpixels=1

FirstChar=33, Height/Width=31, Borderpixels=1

Properties

Bitmap

Set to a Bitmap that holds the font graphics.

CharPixelWidth/Height

The pixel width and height of the characters in the font.

FirstChar

The ASCII value of the first character in the font. 32 is space. 65 is 'A'. 48 is '0'.

BorderPixels

If the font has extra pixels below and to the right then set this property to the number of extra pixels.

Green Marinee theme adapted by David Gilbert, powered by PmWiki