M
mino_dev
Guest
So, I'm trying to add support for Asian languages in my game. However, the languages have so many characters that, if I just try to add the all the characters in the editor they won't fit on a texture page.
So, I want to use font_add to create a font for the languages at runtime by looking at the text they need to draw and only adding those characters to the font. But, font_add only lets you put in a start and an end point, and then returns a new font, correct? So how do I only add specific characters?
Just as an example, if I try to make a font with all the Japanese characters I need through the editor (by just passing in all the text in the game) it ranges from ~8000 to like ~65000, but it's only really using a few characters in between here and there. I don't need to add like 60000 characters to a font just to use character 9834 and 65374 next to each other, right?
So, I want to use font_add to create a font for the languages at runtime by looking at the text they need to draw and only adding those characters to the font. But, font_add only lets you put in a start and an end point, and then returns a new font, correct? So how do I only add specific characters?
Just as an example, if I try to make a font with all the Japanese characters I need through the editor (by just passing in all the text in the game) it ranges from ~8000 to like ~65000, but it's only really using a few characters in between here and there. I don't need to add like 60000 characters to a font just to use character 9834 and 65374 next to each other, right?