开发者

font in iphone sdk?

开发者 https://www.devze.com 2023-01-11 22:13 出处:网络
is it possible to bring another lang开发者_如何学运维uage font in iphone sdk andto insert that font value (for example,chinese) in UILabel value? any help please?You can include the font as a resource

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

精彩评论

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

关注公众号