2D Toolkit Forum

2D Toolkit => Support => Topic started by: polako on February 27, 2014, 07:20:23 pm

Title: Platform Specific and fonts
Post by: polako on February 27, 2014, 07:20:23 pm
Hi there,

It isn't clear how platform specifics works with fonts. The documentation says: "The system only handles sprite collections - it is possible to use platform specific fonts too, but they will need to be added to a sprite collection."
So I added the png to a sprite collections, and it creates 1x, 2x, 4x data (I'm supporting sd, hd and fhd). But I don't understand how to link my "fnt" files to that collection, nor I don't know how to use the font prefab/s here.

I would appreciate if you give me some clear steps in order to accomplish this

Many thanks!
Title: Re: Platform Specific and fonts
Post by: unikronsoftware on February 27, 2014, 09:10:06 pm
You need to import the font into the collection as shown here - you create the data objects at that stage.
http://2dtoolkit.com/docs/latest/tutorial/importing_a_font_into_a_sprite_collection.html

Title: Re: Platform Specific and fonts
Post by: polako on February 28, 2014, 06:33:40 pm
Sorry! I haven't seen that documentation! Many thanks, it worked like charm!