- Home /
font kerning data OR position of char in textmesh?
So! Any way to grab this information? For instance,
this char is an... A
next char is a... B
so return a value of how far right my "B object" should be
from my "A object" along the x axis...
I've seen several incomplete attempts at getting this to work, but alas, I'm at a loss.
As an alternative...! How about the local position of each character in a TextMesh? Any thoughts on other alternatives to the same ends?
Thanks
edit
Trying to do this by calculating desired distance using renderer.bounds on my single-character textmesh, but it's not working as I expected it would. I can't tell what the problem is...
Answer by gfvfubb · Jun 21, 2013 at 06:57 AM
http://docs.unity3d.com/Documentation/ScriptReference/CharacterInfo.html http://answers.unity3d.com/questions/440522/accessing-vertices-to-bend-textmesh.html
I've looked and this seems to be the only way short of using a third party Text -> Mesh generation plugin that records the locations of character breaks.
Your answer
![](https://koobas.hobune.stream/wayback/20220613064734im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
SOLVED - 3D Text - How to apply new font type in Runtime 2 Answers
Custom Font works in editor but not in build 2 Answers
Create a 3d text using c# (font problem) 2 Answers
How to render underlined text in Unity? 6 Answers
Replacing font of TextMesh issue 1 Answer