CTFontCreatePathForGlyph incorrectly returns NULL for empty glyphs (e.g. space)

Originator:pcwalton
Number:rdar://42832439 Date Originated:9/1/2018
Status:Open Resolved:
Product:Core Graphics Product Version:
Classification: Reproducible:
 
Summary:
When you call CTFontCreatePathForGlyph on an empty glyph; (e.g. space in Arial), it returns NULL.

Steps to Reproduce:


Expected Results:
An empty CGPathRef should be returned.

Actual Results:
NULL is returned.

Version/Build:
macOS High Sierra v10.13.2

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!