Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Request characters to be added to the font texture (dynamic fonts only).
Note: You should only ever need to use this when you want to implement your own text rendering.
Call this function to request Unity to make sure all the characters in the string
characters are available
in the font's font texture (and it's
characterInfo property). This is useful when you want to implement your
own code to render dynamic fonts. You can supply a custom font size and style for the characters. If
size is zero
(the default), it will use the default size for that font.