使用 CoreGraphics 绘制 unicode 字符串
如何使用 CoreGraphics 函数分别绘制 unicode 和 utf8 文本?我无法使用 UIKit 函数,因为我没有在主线程上绘图。
How can I draw unicode respectively utf8 text using the CoreGraphics functions? I can't use the UIKit-functions, because I'm not drawing on the main-thread.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UIKit 现在可以在线程上处理每个上下文的绘制,这应该比尝试自己绘制字形简单得多。
否则我会研究核心文本。
UIKit can now handle per-context drawing on a thread, that should be MUCH simpler than trying to draw the glyphs yourself.
Otherwise I'd look into Core Text.