Hello Guest

Author Topic: Detect whether a certain characters exist in tk2dFontData  (Read 3239 times)

birdkingz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Detect whether a certain characters exist in tk2dFontData
« on: April 29, 2016, 04:45:22 pm »
Hi, if I want to do localization, I want to dynamically detect whether a certain character exist in my current FontData.
If my current FontData doesn't has it then I will change to other FontData.
Is that possible in 2dtoolkit?

For example:
FontA doesn't contains character 'A'
so when Im rendering character 'A', I will have to use FontB instead

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Detect whether a certain characters exist in tk2dFontData
« Reply #1 on: May 05, 2016, 09:47:25 pm »
Hi there,

That won't be possible as while you can do the first part switching font data requires multiple materials, splitting a mesh up to use multiple materials isn't particularly straightforward...