问题描述
我们在用 CGBitmapContext 中的函数ShowTextAtPoint"用德语元音显示文本时遇到问题.不显示变音字符.有人有任何解决方法的想法吗?
we have a problem with displaing text with german umlaute with the function "ShowTextAtPoint" in CGBitmapContext. The umlaute characters are not displayed.Has anybody an idea for any workaround?
感谢您的回答,弗兰克
推荐答案
你也可以使用转义序列来让它工作:
You can also use escape sequences to get it to work:
查看您想要的字符的页面:http://en.wikipedia.org/wiki/Mac_OS_Roman
see this page for the characters you want: http://en.wikipedia.org/wiki/Mac_OS_Roman
"\x80, \xE8, \xEC, \x85, \x86" 将按顺序给出大写元音:A、E、I、O、U 带元音
"\x80, \xE8, \xEC, \x85, \x86" will give the capital vowels in order: A, E, I, O, U with umlaute
"\x8A, \x91, \x95, \x9A, \x9F" 将按顺序给出小写元音:a, e, i, o, u 带元音
"\x8A, \x91, \x95, \x9A, \x9F" will give the lowercase vowels in order: a, e, i, o, u with umlaute
MacRoman 包含您需要的字符,因此如果您更喜欢在 CoreGraphics 中工作,则无需使用 UIKit.
MacRoman includes the characters you were needing, so you don't need to use UIKit if you prefer to work in CoreGraphics.
这篇关于CGBitmapContext 中没有德语元音变音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!