Hello Guest

Author Topic: Font problems  (Read 5646 times)

camelot10

  • Newbie
  • *
  • Posts: 24
    • View Profile
Font problems
« on: July 30, 2012, 05:41:16 pm »
i made one atlas for all ingame fonts.
when i create textmesh - everything is fine. but when i trying to change font - everything goes pink.
cant fix this problem.

1. create textmesh
2. change font
3. pink squares and nothing help.

what i do wrong at this time?

p.s project attached.


EDIT: Please don't post projects in here. Use the private support forum when you need to distribute projects.
« Last Edit: July 30, 2012, 06:20:21 pm by unikron »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Font problems
« Reply #1 on: July 30, 2012, 09:42:01 pm »
That is a bug. Thanks for reporting it. To fix it on yours -
in tk2dTextMeshEditor.cs, look for this line:

Code: [Select]
textMesh.renderer.material = allBmFontImporters[newId].material;
and replace with:

Code: [Select]
textMesh.renderer.material = allBmFontImporters[newId].data.material;
That should fix it.


p.s. I edited your post above to remove the project. If you want to post full projects, either use email or the private support forum. Thanks.