Skip to content

Font. #29

@TheHmmka

Description

@TheHmmka

I need to change font but I see an old font in animations.
I fixed it, but can't create pull request.

-(void) setFont: (UIFont*)font
{
    [super setFont: font];

    @synchronized(self)
    {
        for (NSMutableDictionary* attributionStage in self.attributionStages)
        {
            UIFont* prevFont = attributionStage[NSFontAttributeName];
            attributionStage[NSFontAttributeName] = [UIFont fontWithName: font.fontName
                                                                    size: prevFont.pointSize];
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions