Skip to content

Paragraph Style attributes are not overridable on a per attribute basis #2

@Tylerc230

Description

@Tylerc230

I've noticed that when I set a paragraph style attribute (such as text alignment) in the $default MTStringAttribute and then try to set a different one in one of my custom tags (like lineHeightMultiple) any text within that custom tag will not have the proper text alignment. This is because the default NSMutableParagraphStyle object is overridden if any of the attributes are modified in my custom tag's NSMutableParagraphStyle object. It would be nice to be able to override the default paragraph style attributes on an attribute by attribute basis. I'm not sure how that would be achieved though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions