开发者

font in iphone sdk?

is it possible to bring another lang开发者_如何学运维uage font in iphone sdk and to insert that font value (for example,chinese) in UILabel value? any help please?


You can include the font as a resource in the project, then load the font using CoreText but it's not trivial.

The main step is to create a CTFontDescriptor that will load the font. There is sample code in the iPhone SDK documentation that I can't quote, the name of the section I found useful is...

CoreText Listing 2-9 "Creating a font from serialized data"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜