firetype is a library which enables the use of hardware accelerated font rendering. It reads and parses TrueType fonts using the OpenType file format, converts the contained vector glyphs into polygon shapes and renders them using Stage3D via the GPU.
The library makes it easier to handle the resolutions of different versions of Flash or AIR application. It’s possible to arbitrarily scale the texts without worrying about texture resolutions or the performance impact of software rendering on mobile devices.
The rendering process does  not have any impact on CPU performance, which avoids framerate drop. Additionally it only renders pixels actually occupied by characters, saving memory and avoiding shaders and texture lookups operations on transparent pixels.
Sample
_hardwareText = new HardwareText(_context3d); _hardwareText.text = "Hello World!\nThis text is being rendered using firetype!"; _hardwareText.scaleX = _hardwareText.scaleY = 0.02; _hardwareText.x = -320; _hardwareText.calculateTransformations(viewProjection, true); _hardwareText.cache.render(); // formatting text _hardwareText.standardFormat.color = 0x333333; _hardwareText.text = "Just like this."; _hardwareText.text = "You can change the text color with the " + "color attribute.";
@as3gamegears as I just tweeted the guy I don’t really see the point https://t.co/mb9JwE3mN9
@h_a_l_e_x @as3gamegears the goal is to use a lot less memory with a lot nicer results
@promethe42 not sure for nicer because if u rasterize at runtime you can’t see the diff. Regarding Mem I see the improvement @as3gamegears
@promethe42 + we can have the dynamic filters (glow etc). And if we did an img/letter it’s optimized too, not? @as3gamegears
@h_a_l_e_x @as3gamegears the memory/precision ratio is much better with vertices, ence the quality improv. too
@h_a_l_e_x @as3gamegears plus with geometry you can have actual (animated) shaders on your font
RT @as3gamegears: New: firetype (lib which enables to use of GPU accelerated font rendering) http://t.co/q8WI5W8XSe #as3 #flash #gamedev #…
@promethe42 @as3gamegears mmm… ok! Thanks
@h_a_l_e_x @as3gamegears @promethe42 Also, you can display the text on many different resolutions in good quality without extra work.
Max Knoblich liked this on Facebook.
Hope this will be available to use in starling soon.
Indeed! It would be really cool to have that in Starling.
https://github.com/MaxDidIt/firetype#how-do-i-use-firetype-with-starling
Jakub Wagner liked this on Facebook.