Created
August 19, 2022 13:59
-
-
Save J-Swift/82da6b6d0d80a6ca738ada2b7a2926bd to your computer and use it in GitHub Desktop.
Runtime values of NSAttributedString.Key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("attachment [\(NSAttributedString.Key.attachment.rawValue)]") | |
print("backgroundColor [\(NSAttributedString.Key.backgroundColor.rawValue)]") | |
print("baselineOffset [\(NSAttributedString.Key.baselineOffset.rawValue)]") | |
// print("cursor [\(NSAttributedString.Key.cursor.rawValue)]") // mac | |
print("expansion [\(NSAttributedString.Key.expansion.rawValue)]") | |
print("font [\(NSAttributedString.Key.font.rawValue)]") | |
print("foregroundColor [\(NSAttributedString.Key.foregroundColor.rawValue)]") | |
// print("glyphInfo [\(NSAttributedString.Key.glyphInfo.rawValue)]") // mac | |
print("kern [\(NSAttributedString.Key.kern.rawValue)]") | |
print("ligature [\(NSAttributedString.Key.ligature.rawValue)]") | |
print("link [\(NSAttributedString.Key.link.rawValue)]") | |
// print("markdownSourcePosition [\(NSAttributedString.Key.markdownSourcePosition.rawValue)]") // beta | |
// print("markedClauseSegment [\(NSAttributedString.Key.markedClauseSegment.rawValue)]") // mac | |
print("obliqueness [\(NSAttributedString.Key.obliqueness.rawValue)]") | |
print("paragraphStyle [\(NSAttributedString.Key.paragraphStyle.rawValue)]") | |
print("shadow [\(NSAttributedString.Key.shadow.rawValue)]") | |
// print("spellingState [\(NSAttributedString.Key.spellingState.rawValue)]") // mac | |
print("strikethroughColor [\(NSAttributedString.Key.strikethroughColor.rawValue)]") | |
print("strokeColor [\(NSAttributedString.Key.strokeColor.rawValue)]") | |
print("strokeWidth [\(NSAttributedString.Key.strokeWidth.rawValue)]") | |
// print("superscript [\(NSAttributedString.Key.superscript.rawValue)]") // mac | |
// print("textAlternatives [\(NSAttributedString.Key.textAlternatives.rawValue)]") // mac | |
print("textEffect [\(NSAttributedString.Key.textEffect.rawValue)]") | |
// print("toolTip [\(NSAttributedString.Key.toolTip.rawValue)]") // mac | |
print("underlineColor [\(NSAttributedString.Key.underlineColor.rawValue)]") | |
print("underlineStyle [\(NSAttributedString.Key.underlineStyle.rawValue)]") | |
print("verticalGlyphForm [\(NSAttributedString.Key.verticalGlyphForm.rawValue)]") | |
print("writingDirection [\(NSAttributedString.Key.writingDirection.rawValue)]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attachment [NSAttachment] | |
backgroundColor [NSBackgroundColor] | |
baselineOffset [NSBaselineOffset] | |
expansion [NSExpansion] | |
font [NSFont] | |
foregroundColor [NSColor] | |
kern [NSKern] | |
ligature [NSLigature] | |
link [NSLink] | |
obliqueness [NSObliqueness] | |
paragraphStyle [NSParagraphStyle] | |
shadow [NSShadow] | |
strikethroughColor [NSStrikethroughColor] | |
strokeColor [NSStrokeColor] | |
strokeWidth [NSStrokeWidth] | |
textEffect [NSTextEffect] | |
underlineColor [NSUnderlineColor] | |
underlineStyle [NSUnderline] | |
verticalGlyphForm [CTVerticalForms] | |
writingDirection [NSWritingDirection] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment