Hello Guest

Author Topic: Localization of font  (Read 4024 times)

beuzel

  • Newbie
  • *
  • Posts: 1
    • View Profile
Localization of font
« on: November 06, 2015, 12:48:56 pm »
Hello,

We have made a big Unity project and now have to localize it in many languages. That means we need to be flexible to load another font in all text labels in all scenes. For example we have a font containing all european characters and more fonts for russian, asian and so on. Is there a way to replace the given font setting by some other font before loading it? We can't have multiple fonts in memory. It is urgent.

I found a feature request here
https://trello.com/b/UfqlXqXy/2d-toolkit-roadmap
Multiple font / switching support in tk2dTextMesh

Thanks for answers,
Chris

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Localization of font
« Reply #1 on: November 14, 2015, 10:05:50 pm »
This isn't going to be particularly straightforward. You'll have to swap the fontdata and texture objects at runtime. Its not impossible, but not the easiest thing to do. It might be worth looking into packed fonts (http://2dtoolkit.com/docs/2.5/advanced/packed_fonts.html) to see if that can work for you.