Hello Guest

Author Topic: Platform Specific and fonts  (Read 3314 times)

polako

  • Newbie
  • *
  • Posts: 2
    • View Profile
Platform Specific and fonts
« 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!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Platform Specific and fonts
« Reply #1 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


polako

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Platform Specific and fonts
« Reply #2 on: February 28, 2014, 06:33:40 pm »
Sorry! I haven't seen that documentation! Many thanks, it worked like charm!