2D Toolkit Forum

2D Toolkit => Support => Topic started by: birdkingz on April 29, 2016, 04:45:22 pm

Title: Detect whether a certain characters exist in tk2dFontData
Post by: birdkingz 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
Title: Re: Detect whether a certain characters exist in tk2dFontData
Post by: unikronsoftware 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...