|
|
| GetFontWidth | ||
| Width = GetFontWidth(FontIndex) | ||
| Parameters: FontIndex = The index identifier of the font you wish to query |
||
| Returns: Width = The max pixel width of this font |
||
The GetFontWidth function returns the pixel width of the selected font. FACTS: * GetFontWidth returns the width of the widest character in this font. * If you want to calculate the length of a string in pixels see: GetTextWidth Mini Tutorial: This example loads the windows Arial font as font #2, then displays all the information about this font.
This example would output.
|
| Related Info: | GetFontHeight | GetFontName$ | GetFontSize | GetFontStyle | GetFontType | GetTextWidth | LoadFont : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |