-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
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
Attributed string attributes not preserved #67
Comments
Investigating this further, it seems most of the attributes, such as bold etc are preserved, but that some already existing paragraph styling is removed, such as headIndent. |
Have you tried using:
|
Yes, I tried that as well, with the same result. |
Same here, it seems centered paragraph is not preserved. |
Hi Andreas, I am using NantesLabel library on an iOS app and I have the exact same issue; the following settings are ignored: paragraphStyle.firstLineHeadIndent It would be very important to have this corrected in the Library by the Nantes team. |
Is anyone maintaining this library anymore? |
@andreaslindahl sorry for the delay. i'm exploring whether we could preserve those attributes. will keep you updated. |
@ngocholo check the PR above, this should fix the head ident for attributed strings |
When setting the attributedText property to an NSAttributedString, NantesLabel sets the text property of the label to attributedText.string instead of actually setting the attributedText property, which means that any formatting, and other attributes, set on the NSAttributedString aren't used.
Is it possible to use an NSAttributedString without losing all of the formatting and attributes?
The text was updated successfully, but these errors were encountered: