|
| 1 | +# Feather Font |
| 2 | + |
| 3 | +> This is a iconfont version of Feather. Thanks to [colebemis](https://github.com/colebemis) for the great work! |
| 4 | +
|
| 5 | +## What is Feather? |
| 6 | + |
| 7 | +Feather is a collection of **simply beautiful open source icons**. Each icon is designed on a 24x24 grid with an emphasis on simplicity, consistency and readability. |
| 8 | + |
| 9 | +**[feathericons.com](https://feathericons.com)** |
| 10 | + |
| 11 | +## What is Feather Font? |
| 12 | + |
| 13 | +Feather font is icon font for websites, apps. It gives you scalable vector icons that can instantly be customized -- size, color, drop shadow, and anything that can be done with the power of CSS. |
| 14 | + |
| 15 | +## Quote as Font-class |
| 16 | + |
| 17 | +Font-class is one kind of derived usage of Unicode, which solved the problems of intuitive writing and semantic ambiguity |
| 18 | + |
| 19 | +Compared with Unicode, its characteristics as following: |
| 20 | +- Good compatibility, it supports IE 8+ and all usual browsers. |
| 21 | +- When you want to change one icon, you just need to alter the quote of Unicode in class, because it define icons by “class”. |
| 22 | +- But its one kind of font essentially, it can not support multi-color icon as well. |
| 23 | + |
| 24 | +## Usage |
| 25 | + |
| 26 | +1. Define the Feather font |
| 27 | + |
| 28 | +```css |
| 29 | +@font-face { |
| 30 | + font-family: "feather"; |
| 31 | + src: url('iconfont.eot?t=1501834582692'); /* IE9*/ |
| 32 | + src: url('iconfont.eot?t=1501834582692#iefix') format('embedded-opentype'), /* IE6-IE8 */ |
| 33 | + url('iconfont.woff?t=1501834582692') format('woff'), /* chrome, firefox */ |
| 34 | + url('iconfont.ttf?t=1501834582692') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ |
| 35 | + url('iconfont.svg?t=1501834582692#feather') format('svg'); /* iOS 4.1- */ |
| 36 | +} |
| 37 | +``` |
| 38 | + |
| 39 | +2. Define the style of iconfont usage |
| 40 | + |
| 41 | +```css |
| 42 | +.icon { |
| 43 | + /* use !important to prevent issues with browser extensions that change fonts */ |
| 44 | + font-family: 'feather' !important; |
| 45 | + speak: none; |
| 46 | + font-style: normal; |
| 47 | + font-weight: normal; |
| 48 | + font-variant: normal; |
| 49 | + text-transform: none; |
| 50 | + line-height: 1; |
| 51 | + |
| 52 | + /* Better Font Rendering =========== */ |
| 53 | + -webkit-font-smoothing: antialiased; |
| 54 | + -moz-osx-font-smoothing: grayscale; |
| 55 | +} |
| 56 | +``` |
| 57 | + |
| 58 | +3. Copy the individual code of icon into pages. |
| 59 | + |
| 60 | +```html |
| 61 | +<i class="icon icon-xxx"></i> |
| 62 | +``` |
| 63 | + |
| 64 | +## Use CDN |
| 65 | + |
| 66 | +If you intend to use Feather Font with a CDN, you can load the css from a CDN provider. |
| 67 | + |
| 68 | +```html |
| 69 | +<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_o5hd5vvqpoqiwwmi.css"> |
| 70 | +``` |
| 71 | + |
| 72 | +And then use the `feather` and `icon-xxx` class |
| 73 | + |
| 74 | +```html |
| 75 | +<i class="feather icon-xxx></i> |
| 76 | +``` |
| 77 | +
|
| 78 | +> the name of `icon-xxx`, you can check the document above. |
| 79 | +
|
| 80 | +## Sketch Document |
| 81 | +
|
| 82 | + |
| 83 | +
|
| 84 | +Sketch document in `src/feather.sketch` |
| 85 | +
|
| 86 | +## [License](LICENSE) |
0 commit comments