TOMSMorphingLabel icon indicating copy to clipboard operation
TOMSMorphingLabel copied to clipboard

Font.

Open TheHmmka opened this issue 9 years ago • 0 comments

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];
        }
    }
}

TheHmmka avatar Nov 12 '15 06:11 TheHmmka