MBSliderView icon indicating copy to clipboard operation
MBSliderView copied to clipboard

Support Chinese

Open wenhaowang opened this issue 8 years ago • 0 comments

Quartz 2D Programming Guide中有这样一段说明:

To set the font to a text encoding other than MacRoman, you can use the functions CGContextSetFont and CGContextSetFontSize. You must supply a CGFont object to the function CGContextSetFont. You call the function CGFontCreateWithPlatformFont to obtain a CGFont object from an ATS font. When you are ready to draw the text, you use the function CGContextShowGlyphsAtPoint rather than CGContextShowTextAtPoint.

人家说了,如果编码超出MacRoman的范围,你要使用CGContextShowGlyphsAtPoint来绘制。这个函数和CGContextS howTextAtPoint类似,也是5个参数,而且只有第四个参数不同,是字形数组(可能描述的不准确)CGGlyph glyphs[],这个东西如何得到呢?在CoreText frameork(support iOS3.2 and later)提供了这样的接口。

Thank: 1: http://blog.csdn.net/kmyhy/article/details/7651794 2: http://blog.csdn.net/kmyhy/article/details/7643568 3: http://www.cnblogs.com/itentic/archive/2012/06/17/2552311.html

wenhaowang avatar Jul 06 '15 06:07 wenhaowang