I am using a TTF font (vector battle) in my iOS game. I’d like to make it bold, but the only way to do so seems to be importing it as a dynamic font, which iOS can’t handle. I know I can specify a size when I import a font, but is there any way to specify style?
1 Answer
1I don’t think there is any solution for you other than making separate styles when you import them. For example, you will need to import “Arial-Bold”, “Arial-Normal”, “Arial-Italic” and so on.
The font class does provide a way to change the font style dynamically but it is only limited to desktop. The GUIText documentation states that changing style and size only limited to dynamic fonts and 2 documentation states dynamic fonts only available for desktop.
I had the same problem with you because I need to change the text size since I need different size for normal iPhone (480x 320) and Retina Display (960 x 640). So the only solution I think is to import all the fonts in their own style from the beginning and call them accordingly when you need them.
This is the question I’ve asked about GUIText font size and I think it’s similar for your case.