开发者

Displaying custom fonts on the iphone

开发者 https://www.devze.com 2023-01-25 15:06 出处:网络
I have a game which I would like the time and score to be displayed in a custom font. How does one display their own fonts, or would I need to write an algorithm which controls a list of num开发者_开

I have a game which I would like the time and score to be displayed in a custom font.

How does one display their own fonts, or would I need to write an algorithm which controls a list of num开发者_开发知识库ber images e.g. 1, 2, 3 etc. and displays them e.g. 134


Some more info would be useful. When you are just using simple iPhone controls, like an UILabel, you can just add fonts to your project and mention them in the UIAppFonts section of your apps plist.

Otherwise I would suggest using an image map, containing all the characters you need. Cocos2D contains easy stuff for this kind of "problems".

0

精彩评论

暂无评论...
验证码 换一张
取 消