|
GetFontChr | ||
GetFontChr FontIndex, ChrIndex, Xpos, Ypos | ||
Parameters: FontIndex = The Index of the font you wish to initialize ChrIndex = The ASC II index of this character Xpos = The Top X coordinate of where it should grab this character Ypos = The Top Y coordinate of where it should grab this character |
||
Returns: NONE | ||
The GetFontChr command grabs a block of graphics from the current surface (screen or image) and copies it into a bitmap font. This graphic is then used when the font is drawn. Allowing you to import hand drawn fonts, or create all sorts of wacky ones. FACTS: * GetFontChr will automatically convert the pixel data your grabbing from into whatever the bitmap format this font uses. Including Compressed Raster Fonts, which make take a fraction longer to generate than Video Bitmap or FX bitmap fonts, but they're generally the best option. 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 approaches 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 - 2024 - Kevin Picone - PlayBASIC.com |