ZGameEditor Documentation
Community |
FontFontDefines 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 PropertiesBitmapSet to a Bitmap that holds the font graphics. CharPixelWidth/HeightThe pixel width and height of the characters in the font. FirstCharThe ASCII value of the first character in the font. 32 is space. 65 is 'A'. 48 is '0'. BorderPixelsIf the font has extra pixels below and to the right then set this property to the number of extra pixels. |