iphone sdk:使用自定义字体绘制奇怪的字符
我正在视图中绘制自定义字体,但无法正确设置字符映射。问题是我无法绘制一些字符,例如“ü”,“ä”,“á”......显然是因为编码格式之间的差异。
为了简单起见,我想知道如何在 NSString 中存储与 0x00C9、0x00D1 等位置相对应的字符。有什么想法吗?
I'm drawing custom fonts in a view but I'm having trouble to set correctly the map of characters. The thing is that I'm unable to draw some of the characters such as "ü", "ä", "á"... apparently because of differences between the encoding formats.
To make this simple I would want to know how I can store in a NSString a character corresponding to a position such as 0x00C9, 0x00D1 and so on. Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过 [NSString stringWithUTF8String: ] ?
Have you tried [NSString stringWithUTF8String: ] ?