![]() ![]() ![]() |
|
DrawFontChr | ||
DrawFontChr FontIndex, ChrIndex, Xpos, Ypos, [Transparent=1] | ||
Parameters: FontIndex = The Index of the font you wish to draw from ChrIndex = The ASC II index of this character Xpos = The X coordinate of where it should draw this character Ypos = The Y coordinate of where it should draw this character [Transparent=1] = Draw the character transparent or solid (1=Transparent, 0 = solid) |
||
Returns: NONE | ||
The DrawFontChr command draws a character from a bitmap font to current surface (screen or image). FACTS: * DrawFontChr can not draw (Windows Fonts) to FX images. Mini Tutorial: This example loads the windows true type Arial, and the builds a custom bitmap version of it. In fact this example basically replicates what the MakeBitmapFont does. But this approach gives you the control and freedom to build or import hand drawn character sets into PB as a custom font.
This example would output.
|
Related Info: | BlendBitmapFont | CreateBitmapFont | LoadFont | MakeBitmapFont | MakeShadowBitmapFont | SetFont : |
|
|||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() |
(c) Copyright 2002 - 2025 - Kevin Picone - PlayBASIC.com |