Regression: CTFontManagerRegisterGraphicsFont no longer loads fonts from data provider in 17E150g

Originator:duncan
Number:rdar://37392499 Date Originated:2/9/2018
Status:Duplicate of 37009618 Resolved:
Product:macOS Product Version:10.13.4 17E150g
Classification:Serious bug Reproducible:Always
 
Summary:

As of 10.13.4 17E150g, CTFontManagerRegisterGraphicsFont fails to load fonts created from a data provider. This is a regression because the same fonts load fine on 10.13.3 using the same project.

Steps to Reproduce:

Run attached sample, check the Xcode console. A load status is logged.

(https://www.dropbox.com/s/us6bhp596wg2t1s/fonttest.zip?dl=0)

Expected Results:

The font should be loaded correctly.

Actual Results:

The font fails to load.

Version/Build:

10.13.4 17E150g

Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!