Blitz.FontApi
Blitz.FontApi - TTF font functions for Blitz.
| Version: | 0.1 |
| Latest Release: | 26th October, 2007 |
| Licence: | Free to use and modify without restriction. |
| Bug tracker: | http://bugs.sodaware.net/?project=4 |
Description
Blitz.FontApi contains some useful functions for using TTF fonts. At the moment it’s only useful for extracting information from the “NAME” table, but if there’s demand I’ll add more functionality.
The most common use of this library is to load a TTF font and get the “Windows” name so it can be loaded by Blitz.
Quick Installation Guide
Include “Blitz_Font_TTF.bb”, “Blitz_Basic_Endian.bb” into your projects.
Quick Example
; Endian support
Include "Blitz_Basic_Endian.bb"
; Load the font
Local myFont.TTF = TTF_Load("C:/Windows/Fonts/Verdana.ttf")
; Print some details
Print "This font's family is called: " + TTF_GetFontName(myFont)
Print "Copyright: " + TTF_Name_GetProperty(myFont, TTF_NAME_ID_COPYRIGHT)
; Cleanup
TTF_Dispose(myFont)
Support
This library has been tested, but some bugs may still be present. You can report bugs at the sodaware bug tracker, and also add feature requests.
If you like this resource, please consider donating. The amount you donate is entirely up to you, and any amount is greatly appreciated.
This software is provided ‘as-is’, without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.