Returns the font attributes in effect for the character at the given location.
- macOS 10.0+
A dictionary containing the font attributes for the range.
Use this method to obtain font attributes that are to be copied or pasted with “copy font” operations.
NSRange if any part of
a lies beyond the end of the receiver’s characters.