CTRunGetAttributes(_:)
Returns the attribute dictionary that was used to create the glyph run.
Declaration
func CTRunGetAttributes(_ run: CTRun) -> CFDictionaryParameters
- run:
The run for which to return attributes.
Return Value
A valid CFDictionary or NULL on error or if the run has no attributes.
Discussion
The dictionary returned is either the same one that was set as an attribute dictionary on the original attributed string or a dictionary that has been manufactured by the layout engine. Attribute dictionaries can be manufactured in the case of font substitution or if the run is missing critical attributes.