We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NSAttributedString.DocumentAttributeKey.defaultFontExcluded
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://developer.apple.com/documentation/foundation/nsattributedstring/documentattributekey/4273964-defaultfontexcluded
It does not exclude the default font.
To reproduce, run the attached sample project.
The output will be:
Optional("{\\rtf1\\ansi\\ansicpg1252\\cocoartf2757\n\\cocoatextscaling0\\cocoaplatform0{\\fonttbl\\f0\\fswiss\\fcharset0 Helvetica;}\n{\\colortbl;\\red255\\green255\\blue255;}\n{\\*\\expandedcolortbl;;}\n\\pard\\tx560\\tx1120\\tx1680\\tx2240\\tx2800\\tx3360\\tx3920\\tx4480\\tx5040\\tx5600\\tx6160\\tx6720\\pardirnatural\\partightenfactor0\n\n\\f0\\fs24 \\cf0 Hello}")
Notice Helvetica; in there, which should not be there because we passed .defaultFontExcluded: true.
Helvetica;
.defaultFontExcluded: true
Sample project.zip
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
https://developer.apple.com/documentation/foundation/nsattributedstring/documentattributekey/4273964-defaultfontexcluded
It does not exclude the default font.
To reproduce, run the attached sample project.
The output will be:
Notice
Helvetica;
in there, which should not be there because we passed.defaultFontExcluded: true
.Files
Sample project.zip
The text was updated successfully, but these errors were encountered: