Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matteocrippa/MCFontAwesome

Font Awesome support in Swift
https://github.com/matteocrippa/MCFontAwesome

List: MCFontAwesome

Last synced: 3 months ago
JSON representation

Font Awesome support in Swift

Awesome Lists containing this project

README

        

MCFontAwesome
=============

Font Awesome **v4.1.0** for Swift

Font aliases has not been ported yet, in order to refer to a font you have to strip all the - (minus) inside its name in order to refer to that icon.

Install
=========

In order to install add all the files inside _MCFontAwesome_ directory to your project paying attention to copy files inside.

Once finished edit your _plist_ file adding this key:

- UIAppFonts

Pay attention that a new row has been added and then edit the content adding **FontAwesome.otf** as new supported font

CocoaPods (still not available)
============

Use CocoaPods in order to quick install, you only need to add

```
pod 'MCFontAwesome'
```

to your podfile and install with **pod install** command

Usage
============

Eg. I want to use **fa-glass** i need to write this code snippet:

```swift
testLbl.font = UIFont(name: "FontAwesome", size: 20)
testLbl.text = NSString().fontAwesomeIconWithName(FAIcon.faglass)
```

Donations
===========================

This work is free of any charge, but if you want to donate for a beer or a coffee feel free to do it!

`Bitcoin: 1BWmKKaDzyvVqNQgZNUWV7rcU91MMqPAXT`

License
============

- The Font Awesome font is licensed under the SIL OFL 1.1:
- http://scripts.sil.org/OFL
- Font Awesome CSS, LESS, and SASS files are licensed under the MIT License:
- http://opensource.org/licenses/mit-license.html
- MCFontAwesome is licensed under MIT License
- http://opensource.org/licenses/mit-license.html

Attribution
=============
- `Font Awesome by Dave Gandy - http://fontawesome.io`