in4ray / firefly-sdk

Firefly - in4ray Gaming SDK
http://firefly.in4ray.com
Other
54 stars 11 forks source link

A lot of single character text #20

Closed VladimirCores closed 10 years ago

VladimirCores commented 10 years ago

I have a lot of simple characters on the stage. Is it possible to get texture from text field with firefly functionality? And i find that there is 2 drawcalls for every single TextField. How can i optimize thous thing?

vstyran commented 10 years ago

Hi, you can use bitmap font and load font texture through texture bundle and then adjust font xml using com.firefly.core.utils.XMLUtil.adjustFontXML(xml) method.

VladimirCores commented 10 years ago

I use font from example and it's fit my needs well. Thank you!