问题描述
CTS5.1R28测试android.graphics.cts.TypefaceTest -- testBadFont失败
失败提示显示:
java.lang.RuntimeException: Font asset not found ft45987.ttf
at android.graphics.Typeface.createFromAsset(Typeface.java:190)
解决方案
testBadFont这是r24新增的case,请看此case的说明: https://android.googlesource.com/platform/cts/+/55a67cb64b201209f05dec62935c40275ac6f8fe
要pass此项需要合入如下安全补丁: https://android.googlesource.com/platform/external/freetype/+/f720f0dbcf012d6c984dbbefa0875ef9840458c6