Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - clckwrk

Pages: [1]
1
Support / Re: Can't use custom font in TextMesh
« on: July 15, 2012, 09:10:38 pm »
Ahh thanks I didn't realize there was a difference.

2
Support / Can't use custom font in TextMesh
« on: July 15, 2012, 07:22:05 pm »
So I followed the instructions for how to import a font, but now whenever I try to create a tk2d TextMesh I get this error:

Code: [Select]
IndexOutOfRangeException: Array index is out of range.
tk2dTextMesh.GetMeshDimensionsForString (System.String str) (at Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:543)
tk2dTextMesh.FillTextData () (at Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:244)
tk2dTextMesh.Init () (at Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:384)
tk2dTextMesh.Commit () (at Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:456)
tk2dTextMeshEditor.OnInspectorGUI () (at Assets/TK2DROOT/tk2d/Editor/Fonts/tk2dTextMeshEditor.cs:166)
UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty)
UnityEditor.InspectorWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
UnityEditor.PopupCallbackInfo:SetEnumValueDelegate(Object, String[], Int32)

I've attached what it looks like, as well as how I've set up the font.

The included fonts render properly, this only happens when I select my custom font.


And ideas? Thanks!

Pages: [1]