apploft / ExpandableLabel

A simple UILabel subclass that shows a tappable link if the content doesn't fit the specified number of lines
MIT License
464 stars 126 forks source link

Custom Font Issue #7

Open MilapKundalia opened 8 years ago

MilapKundalia commented 8 years ago

Hi There,

Thanks for creating this awesome control !

I am facing a wired issue in this. If I set custom font in expandable label its is not working it is only working in system font.

Can you plz help me in this?

Thanks in again Hoping for positive and the quick reply.

michaelkamphausen commented 8 years ago

Hi, I'm sorry to tell you that I can't help. The author of this component has left our organization. But if you find a solution and send a pull request, I'll merge it on occasion.

Chchu777 commented 5 years ago
@objc open var ellipsis: NSAttributedString? {
    didSet {
        let font =  UIFont.init(name: <#T##String#>, size: CGFloat)

        self.ellipsis = ellipsis?.copyWithAddedFontAttribute(font)
    }
}

Please set font check it its supported custom font. its working in my project