Removed deprecation warnings

NSFontAttributeName added and compatible