从iOS 7开始,我现在看到我的控制台充满了以下内容:
CoreText: Invalid 'kern' Subtable In name = Volkswagen-Bold, size =
17.000000, matrix = 0x0, descriptor = <CTFontDescriptor: 0x10a79370>{attributes = <CFBasicHash 0x10a793a0 [0x537fec8]>{type = mutable dict, count = 1,
entries =>
1 : <CFString 0x6a9df90 [0x537fec8]>{contents = "NSFontNameAttribute"} = <CFString 0x10a795e0 [0x537fec8]>{contents = "Volkswagen-Bold"}
}
>}
当我安装字体并在FontBook中验证它时,kern检查正常。 iOS 6对这种字体没有任何问题,我不确定如何解决这个问题。我在字体上运行了ftxdumperfuser,这是输出,看起来很正常......有什么想法吗?
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE hheaTable [
<!ELEMENT hheaTable EMPTY>
<!ATTLIST hheaTable versionMajor CDATA #IMPLIED
versionMinor CDATA #IMPLIED
ascender CDATA #IMPLIED
descender CDATA #IMPLIED
lineGap CDATA #IMPLIED
advanceWidthMax CDATA #IMPLIED
minLeftSideBearing CDATA #IMPLIED
minRightSideBearing CDATA #IMPLIED
xMaxExtent CDATA #IMPLIED
caretSlopeRise CDATA #IMPLIED
caretSlopeRun CDATA #IMPLIED
caretOffset CDATA #IMPLIED
metricDataFormat CDATA #IMPLIED
numberOfHMetrics CDATA #IMPLIED
>
]>
<!--
Data generated Tue Nov 5 11:48:57 2013
Generated by ftxdumperfuser build 248,
FontToolbox.framework build 55
Font full name: 'Volkswagen-Bold'
-->
<hheaTable
versionMajor="1"
versionMinor="0"
ascender="978"
descender="-239"
lineGap="0"
advanceWidthMax="1042"
minLeftSideBearing="-90"
minRightSideBearing="-82"
xMaxExtent="1009"
caretSlopeRise="1"
caretSlopeRun="0"
caretOffset="0"
metricDataFormat="0"
numberOfHMetrics="231"
/>
答案 0 :(得分:1)
该字体最初是一个ttf,我终于找到了一个otf版本并解决了这个问题。我认为它与文件扩展名无关,而是与数据的创建或保存方式有关。