Author Topic: bitmap font doesn't work in Thai Language  (Read 3080 times)

notehaha

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
bitmap font doesn't work in Thai Language
« on: August 12, 2014, 05:47:51 AM »
Hi Tasharen team and anyone who experts on font issue,

I just bought NGUI asset two days ago after using DFGUI for a half year (now I know I prefer NGUI)

Since I am willing to use some bitmap fonts, I got a problem that my game displays incorrect for Thai Language but NGUI works fine when I choose UNITY dynamic font on UILabel.

Image1: NGUI's UILabel using Unity Dynamic font (work correctly)


Image2: NGUI's UILabel using bitmap


diff: see inside the yellow rectangle, there are missing vowel character under alphabets


please help and advice. I really do want to use bitmap fonts to avoid future draw call usage.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: bitmap font doesn't work in Thai Language
« Reply #1 on: August 12, 2014, 07:20:26 AM »
Your image links don't appear to be working.

Bitmap fonts are able to draw only the glyphs you've exported. In the Font Maker, when creating the font, you get to specify which characters will be available. You need to explicitly choose all the characters you need by specifying "Custom" and pasting all the text you have. You can just dump the entire Localization file's contents in there, and NGUI will pick out the unique characters for you.

notehaha

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: bitmap font doesn't work in Thai Language
« Reply #2 on: August 13, 2014, 11:20:29 AM »
really thanks for your prompt reply.

I tried changing from NGUI bitmap font generator to another. it seem works right.