I’d be interested to know of there was a leading setting as well. And I guess tracking/letter-spacing would be more useful than kerning (though I’m no typography expert). Still, I don’t see any of this, so it should probably all be feature-requested.
However, \n works just fine over here.
if (GUILayout.RepeatButton ("Increase max\nSlider Value"))
(NOT SURE ABOUT THE NEW GUI BUT…)
I make custom fonts and you can control the kerning and line spacing - you just can’t do kerning pairs. It takes me about a full days work to make one though.
Text Mesh has the Line Spacing Property and the custom fonts allow you to set…
Kerning, Line Spacing and Per Character Kerning
I’m a little confused. When you say kerning, are you talking about tracking/letter-spacing?
Unlike Text Mesh, Unity GUI doesn’t appear to even have a line spacing/leading setting. I’m assuming that you would have to build that into the font as well for that system. :?
Kerning Pairs fix trouble cases in fonts where two letters next to each other need a special kerning values.
[it looked better in the editing font]
So say… ihijikil
i’s kerning looks good but when next to the j it has too much spacing you would set up a kerning pair to fix i next to j
Kerning sets the value of the letter’s trailing space.
You can’t set the letter’s leading space - except via the artwork and I don’t suggest it, as you want the letter to be as close to it’s left hand cell as possible.
You can set the entire font’s Kerning via the kerning property and you can set each letter to have it’s own kerning based off of the entire kerning value. This really should be the Tracking value but in Unity they have it as Kerning.
so say if the kerning value of .5 makes you entire font read well but for some reason i ALWAYS has too much trailing space you can set it to be smaller.
yeah, i’m a dope. because i had my string in a var once i added in the return i needed to reset the script to get it to update. so it was working i just couldn’t tell ; )
i more meant tracking than kerning, its just labeled as kerning in the inspector. usually per character kerning is only for titles such which wouldn’t be done in unity anyway (kerning pairs being noted though). i find in general characters in free fonts you can find online are set either too close together (more likely) or too far apart.