Tag: 字形

Google Web字体的字体支持“latin”与“latin-extended”字形支持哪些语言?

Google Web Fonts上的一些字体支持多个“字符集”。 问题是,如果我使用的networking字体只服务于“拉丁”字形,那么将页面翻译为不支持字形的语言的用户将会清楚地注意到这些乱七八糟的文字。 我希望我的网页字体支持世界上最stream行的语言,除了英语以外,例如西class牙语,德语,法语等。 为此,我想知道,“拉丁语”和“拉丁语扩展”正好迎合了哪些语言。 我希望答案是这样的: Latin Character Set & Supported Languages: – ………. – ………. – ………. Latin-Extended Character Set & Supported Languages: – ………. – ………. – ………. 我无法在Google Web Fonts文档或Googlesearch中find此信息。

核心文本在iOS中计算字母框架

我需要为NSAttributedString(核心文本)中的每个字符(字形)计算确切的边界框。 把一些用来解决类似问题的代码(核心文本select等)放在一起后,结果是相当不错的,但是只有几帧(红色)正在计算正确: 大多数框架是水平或垂直错位(微小的一点)。 这是什么原因? 我怎样才能完善这个代码? -(void)recalculate{ // get characters from NSString NSUInteger len = [_attributedString.string length]; UniChar *characters = (UniChar *)malloc(sizeof(UniChar)*len); CFStringGetCharacters((__bridge CFStringRef)_attributedString.string, CFRangeMake(0, [_attributedString.string length]), characters); // allocate glyphs and bounding box arrays for holding the result // assuming that each character is only one glyph, which is wrong CGGlyph *glyphs = (CGGlyph *)malloc(sizeof(CGGlyph)*len); […]