1
NGUI 3 Support / Re: Special Characters Break Text Wrapping
« on: March 30, 2018, 10:10:30 AM »
Nope. I'm all about the font.
Anyway, I figured out the issue. Because Font Awesome has a ton of glyphs, the ch numbers can get into the tens of thousands. Because of that, the ch will accidentally be flagged as eastern.
See line 1202 in NGUIText
Problem with this line of code, is it assumes the user is using a specific font what follows the average standards, which Font Awesome does not.
Since I wont be using eastern characters, this was an easy fix for me.
Anyway, I figured out the issue. Because Font Awesome has a ton of glyphs, the ch numbers can get into the tens of thousands. Because of that, the ch will accidentally be flagged as eastern.
See line 1202 in NGUIText
- if (ch > 12287) eastern = true;
Problem with this line of code, is it assumes the user is using a specific font what follows the average standards, which Font Awesome does not.
Since I wont be using eastern characters, this was an easy fix for me.