SwiftFontName alternatives and similar libraries
Based on the "Font" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of SwiftFontName or a related project?
SwiftFontName is font name complements and supports localized font library.
You don't need to search font name any more with SwiftFontName. When using UIFont, you sometimes search font name string because UIFont needs string font name value. Font family name and font name don't have organized naming rule, so it's painful to search correct string. With SwiftFontName, font name candidates shows up when you put first word of font family name.
- Complements for all font names in OS version.
- Localized font name support.
To start using SwiftFontName, write the following line wherever you want to user font complements:
FontName.HelveticaNeueLight // HelveticaNeue-Light
It is really simple!
Localized Font Name
And you can select localized font:
LocalizedFontName(FontName.Copperplate, ["ja": FontName.HiraKakuProNW6, "en": FontName.HelveticaNeueLight])
It means that when preferredLanguage is Japanese, use
HiraKakuProNW6. And when preferredLanguage is English, use
HelveticaNeue-Light. And in other case, use
- iOS8.0 or later
- Xcode 10.2
- Swift 5
SwiftFontName is available through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks! pod 'SwiftFontName', '~> 4.0.0'
github "morizotter/SwiftFontName" ~> 4.0
LocalizedFontName.swift in SwiftFontName directory, you can use this library, too.
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Naoki Morita, email@example.com
SwiftFontName is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the SwiftFontName README section above are relevant to that project's source code only.