Const Name:String = "FontMachine" | |
Description: | This constant contains the library name |
Const Version:String = "12.02.20-A" | |
Description: | This constant contains the library version |
Copyright (c) 2011 Manel Ibáñez
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Version 12.02.20-AVersion 12.02.17-A
- Fixed an small bug regarding Font interface consitency. Text width should be Float intead of Int.
Version 12.02.16-A
- Fixed an small aligment bug on multiline strings rendering
Version 12.02.15-B
- Implemented several optimizations on text drawing routines, so they generate less garbage. (thanks to sgg for the suggestion and code samples)
- Implemented a new method on the BitmapFont class called Charcount and returns the number of BitMapChar objects contained available in a given font, so you can iterate throug them properly.
- Fixed an issue that was making the whole library to cause a crash when a GetInfo command was performed on a null BitMapChar.
Version 12.01.27-A
- Implemented a Kerning property for all bitmap fonts. X and Y values will define additional horizontal and vertical font kerning
- Implemented a GetTxtHeight function that returns the height of a given string, in graphic units, taking into account multiline strings
- Improved the GetTxtWidth command in a way that it now handles properly multiline strings
- B Version: Fixed some small issues on text size calculation
Version 12.01.25-A
- Fixed a compatibility issue with the Font interface
Version 11.08.03-A
- Implemented the aligment flags on draw operations
- Fixed a syntax error in several GetInfo methods for the bitmapfont class
- Fixed an incompatibility with the latest Monkey compiler, due to abstract identifier inside the Font interface
- Addeed the aligment enumerator-like class
- Optimization of the DrawText command on Java based targets, such as Android (Thanks to SGG at Jungle Ide for this one!)
- Implemented single texture fonts support
- Optimized fonts loading time
- Reduced slightly memory used by each Font instance