optonaut / ActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift
MIT License
4.47k stars 686 forks source link

Font for highlight #136

Closed Jellyfishinatrifle closed 5 years ago

Jellyfishinatrifle commented 7 years ago

Hi is it possible to specify a particular font for a highlighted word? Similar to mentionColour on the api... is there a mentionFont or some way of achieving this?

I attempted to just add the font into the attributes in addLinkAttribute() but I think there may be an issue with using different fonts as I see extra vertical spacing.

Any info would be hugely appreciated. Thanks. Jules

polqf commented 7 years ago

Whenever https://github.com/optonaut/ActiveLabel.swift/pull/122 is merged, you'll be able to do it

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.