I am trying to change the tk2dtextmesh font from script. But the font I was imported into a spritecollection as descripted here :http://www.unikronsoftware.com/2dtoolkit/docs/latest/tutorial/importing_a_font_into_a_sprite_collection.html
how can I do this ?
I found some script in the forum use code like this can load tk2dfontdata , but not spritecollection.
GameObject fontData = Resources.Load("TrollFontData") as GameObject;
textmesh.font = fontData.GetComponent<tk2dFontData>();
Could you give me some help?