Hello Guest

Author Topic: textmesh support chinese font?  (Read 8553 times)

Dzxyan

  • Newbie
  • *
  • Posts: 7
    • View Profile
textmesh support chinese font?
« on: July 09, 2014, 10:47:55 am »
textmesh support chinese font?
i try use chinese font,
but i realise it will be huge files and maybe not work,
any help?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: textmesh support chinese font?
« Reply #1 on: July 09, 2014, 10:50:17 am »
It supports chinese fonts, but you will have to deal with the size of the font atlas. tk2d text mesh doesn't support dynamic fonts.

Dzxyan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: textmesh support chinese font?
« Reply #2 on: July 09, 2014, 11:30:46 am »
It supports chinese fonts, but you will have to deal with the size of the font atlas. tk2d text mesh doesn't support dynamic fonts.

Any way to do it?
I'm not sure about it
i think cannot use bmfont to create it,
file is huge for that
« Last Edit: July 09, 2014, 11:34:16 am by Dzxyan »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: textmesh support chinese font?
« Reply #3 on: July 09, 2014, 01:49:11 pm »
If you want to use dynamic fonts you'll have to use unity built in textmesh, the tk2dTextMesh only supports bitmap fonts.

Dzxyan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: textmesh support chinese font?
« Reply #4 on: July 10, 2014, 03:35:50 am »
If you want to use dynamic fonts you'll have to use unity built in textmesh, the tk2dTextMesh only supports bitmap fonts.

if bitmap fonts. then how can use it?
alot of bitmap font need to create?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: textmesh support chinese font?
« Reply #5 on: July 12, 2014, 09:50:09 pm »
It depends how big your font is and how many characters you need. If you need super high resolution bitmap fonts with all the CJK glyphs, then that wont be a good idea. If your fonts are fairly low resolution, and/or you only need a subset of characters, that will work fine for you. If you need dynamic fonts you're better off using Unitys text mesh.

Dzxyan

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: textmesh support chinese font?
« Reply #6 on: July 21, 2014, 08:38:25 am »
It depends how big your font is and how many characters you need. If you need super high resolution bitmap fonts with all the CJK glyphs, then that wont be a good idea. If your fonts are fairly low resolution, and/or you only need a subset of characters, that will work fine for you. If you need dynamic fonts you're better off using Unitys text mesh.

if using textmesh by unity, i will face a problem that order in layer will affect the textmesh and i can't see it clearly
it will always behind my 2dtoolkit sprite

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: textmesh support chinese font?
« Reply #7 on: July 21, 2014, 01:04:26 pm »
You can also find scripts to let you control order in layer on other objects, Unity doesn't expose it but its available on any renderer object. This is a limitation of Unity which you'll need to work around.

http://answers.unity3d.com/questions/595634/3d-textmesh-not-being-drawn-properly-in-a-2d-game.html