Generate feather font manually using icomoon to avoid fontcustom bugs

This commit is contained in:
Joel Arvidsson
2017-10-07 19:34:04 +02:00
parent 70c55e4f32
commit 809a1e7824
5 changed files with 273 additions and 268 deletions

9
BUILDING_FEATHER.md Normal file
View File

@@ -0,0 +1,9 @@
# Generating Feather icon set
1. Go to [Icomoon Library](https://icomoon.io/app/#/select/library) and press _+ Add_ on the Feather icon set
2. Press _Select all_ in the hamburger menu next to the icon set
3. Press _Generate Font_ in the bottom menu
4. Press _Preferences_ and enter `Feather` as _Font Name_ in the dialog
5. Press _Download_
6. Unzip the file and move the folder to the `react-native-vector-icons` folder
7. Generate the icon set with `yarn build-feather`

BIN
Fonts/Feather.ttf Normal file → Executable file

Binary file not shown.

View File

@@ -1,242 +1,242 @@
{
"activity": 61696,
"airplay": 61697,
"alert-circle": 61698,
"alert-octagon": 61699,
"alert-triangle": 61700,
"align-center": 61701,
"align-justify": 61702,
"align-left": 61703,
"align-right": 61704,
"anchor": 61705,
"aperture": 61706,
"arrow-down": 61707,
"arrow-down-left": 61708,
"arrow-down-right": 61709,
"arrow-left": 61710,
"arrow-right": 61711,
"arrow-up": 61712,
"arrow-up-left": 61713,
"arrow-up-right": 61714,
"at-sign": 61715,
"award": 61716,
"bar-chart": 61717,
"bar-chart-2": 61718,
"battery": 61719,
"battery-charging": 61720,
"bell": 61721,
"bell-off": 61722,
"bluetooth": 61723,
"bold": 61724,
"book": 61725,
"bookmark": 61726,
"box": 61727,
"briefcase": 61728,
"calendar": 61729,
"camera": 61730,
"camera-off": 61731,
"cast": 61732,
"check": 61733,
"check-circle": 61734,
"check-square": 61735,
"chevron-down": 61736,
"chevron-left": 61737,
"chevron-right": 61738,
"chevron-up": 61739,
"chevrons-down": 61740,
"chevrons-left": 61741,
"chevrons-right": 61742,
"chevrons-up": 61743,
"chrome": 61744,
"circle": 61745,
"clipboard": 61746,
"clock": 61747,
"cloud": 61748,
"cloud-drizzle": 61749,
"cloud-lightning": 61750,
"cloud-off": 61751,
"cloud-rain": 61752,
"cloud-snow": 61753,
"codepen": 61754,
"command": 61755,
"compass": 61756,
"copy": 61757,
"corner-down-left": 61758,
"corner-down-right": 61759,
"corner-left-down": 61760,
"corner-left-up": 61761,
"corner-right-down": 61762,
"corner-right-up": 61763,
"corner-up-left": 61764,
"corner-up-right": 61765,
"cpu": 61766,
"credit-card": 61767,
"crop": 61768,
"crosshair": 61769,
"delete": 61770,
"disc": 61771,
"download": 61772,
"download-cloud": 61773,
"droplet": 61774,
"edit": 61775,
"edit-2": 61776,
"edit-3": 61777,
"external-link": 61778,
"eye": 61779,
"eye-off": 61780,
"facebook": 61781,
"fast-forward": 61782,
"feather": 61783,
"file": 61784,
"file-minus": 61785,
"file-plus": 61786,
"file-text": 61787,
"film": 61788,
"filter": 61789,
"flag": 61790,
"folder": 61791,
"github": 61792,
"gitlab": 61793,
"globe": 61794,
"grid": 61795,
"hash": 61796,
"headphones": 61797,
"heart": 61798,
"help-circle": 61799,
"home": 61800,
"image": 61801,
"inbox": 61802,
"info": 61803,
"instagram": 61804,
"italic": 61805,
"layers": 61806,
"layout": 61807,
"life-buoy": 61808,
"link": 61809,
"link-2": 61810,
"list": 61811,
"loader": 61812,
"lock": 61813,
"log-in": 61814,
"log-out": 61815,
"mail": 61816,
"map": 61817,
"map-pin": 61818,
"maximize": 61819,
"maximize-2": 61820,
"menu": 61821,
"message-circle": 61822,
"message-square": 61823,
"mic": 61824,
"mic-off": 61825,
"minimize": 61826,
"minimize-2": 61827,
"minus": 61828,
"minus-circle": 61829,
"minus-square": 61830,
"monitor": 61831,
"moon": 61832,
"more-horizontal": 61833,
"more-vertical": 61834,
"move": 61835,
"music": 61836,
"navigation": 61837,
"navigation-2": 61838,
"octagon": 61839,
"package": 61840,
"paperclip": 61841,
"pause": 61842,
"pause-circle": 61843,
"percent": 61844,
"phone": 61845,
"phone-call": 61846,
"phone-forwarded": 61847,
"phone-incoming": 61848,
"phone-missed": 61849,
"phone-off": 61850,
"phone-outgoing": 61851,
"pie-chart": 61852,
"play": 61853,
"play-circle": 61854,
"plus": 61855,
"plus-circle": 61856,
"plus-square": 61857,
"pocket": 61858,
"power": 61859,
"printer": 61860,
"radio": 61861,
"refresh-ccw": 61862,
"refresh-cw": 61863,
"repeat": 61864,
"rewind": 61865,
"rotate-ccw": 61866,
"rotate-cw": 61867,
"save": 61868,
"scissors": 61869,
"search": 61870,
"server": 61871,
"settings": 61872,
"share": 61873,
"share-2": 61874,
"shield": 61875,
"shopping-cart": 61876,
"shuffle": 61877,
"sidebar": 61878,
"skip-back": 61879,
"skip-forward": 61880,
"slack": 61881,
"slash": 61882,
"sliders": 61883,
"smartphone": 61884,
"speaker": 61885,
"square": 61886,
"star": 61887,
"stop-circle": 61888,
"sun": 61889,
"sunrise": 61890,
"sunset": 61891,
"tablet": 61892,
"tag": 61893,
"target": 61894,
"thermometer": 61895,
"thumbs-down": 61896,
"thumbs-up": 61897,
"toggle-left": 61898,
"toggle-right": 61899,
"trash": 61900,
"trash-2": 61901,
"trending-down": 61902,
"trending-up": 61903,
"triangle": 61904,
"tv": 61905,
"twitter": 61906,
"type": 61907,
"umbrella": 61908,
"underline": 61909,
"unlock": 61910,
"upload": 61911,
"upload-cloud": 61912,
"user": 61913,
"user-check": 61914,
"user-minus": 61915,
"user-plus": 61916,
"user-x": 61917,
"users": 61918,
"video": 61919,
"video-off": 61920,
"voicemail": 61921,
"volume": 61922,
"volume-1": 61923,
"volume-2": 61924,
"volume-x": 61925,
"watch": 61926,
"wifi": 61927,
"wifi-off": 61928,
"wind": 61929,
"x": 61930,
"x-circle": 61931,
"x-square": 61932,
"zap": 61933,
"zoom-in": 61934,
"zoom-out": 61935
"activity": 59648,
"airplay": 59649,
"alert-circle": 59650,
"alert-octagon": 59651,
"alert-triangle": 59652,
"align-center": 59653,
"align-justify": 59654,
"align-left": 59655,
"align-right": 59656,
"anchor": 59657,
"aperture": 59658,
"arrow-down": 59659,
"arrow-down-left": 59660,
"arrow-down-right": 59661,
"arrow-left": 59662,
"arrow-right": 59663,
"arrow-up": 59664,
"arrow-up-left": 59665,
"arrow-up-right": 59666,
"at-sign": 59667,
"award": 59668,
"bar-chart": 59669,
"bar-chart-2": 59670,
"battery": 59671,
"battery-charging": 59672,
"bell": 59673,
"bell-off": 59674,
"bluetooth": 59675,
"bold": 59676,
"book": 59677,
"bookmark": 59678,
"box": 59679,
"briefcase": 59680,
"calendar": 59681,
"camera": 59682,
"camera-off": 59683,
"cast": 59684,
"check": 59685,
"check-circle": 59686,
"check-square": 59687,
"chevron-down": 59688,
"chevron-left": 59689,
"chevron-right": 59690,
"chevron-up": 59691,
"chevrons-down": 59692,
"chevrons-left": 59693,
"chevrons-right": 59694,
"chevrons-up": 59695,
"chrome": 59696,
"circle": 59697,
"clipboard": 59698,
"clock": 59699,
"cloud": 59700,
"cloud-drizzle": 59701,
"cloud-lightning": 59702,
"cloud-off": 59703,
"cloud-rain": 59704,
"cloud-snow": 59705,
"codepen": 59706,
"command": 59707,
"compass": 59708,
"copy": 59709,
"corner-down-left": 59710,
"corner-down-right": 59711,
"corner-left-down": 59712,
"corner-left-up": 59713,
"corner-right-down": 59714,
"corner-right-up": 59715,
"corner-up-left": 59716,
"corner-up-right": 59717,
"cpu": 59718,
"credit-card": 59719,
"crop": 59720,
"crosshair": 59721,
"delete": 59722,
"disc": 59723,
"download": 59724,
"download-cloud": 59725,
"droplet": 59726,
"edit": 59727,
"edit-2": 59728,
"edit-3": 59729,
"external-link": 59730,
"eye": 59731,
"eye-off": 59732,
"facebook": 59733,
"fast-forward": 59734,
"feather": 59735,
"file": 59736,
"file-minus": 59737,
"file-plus": 59738,
"file-text": 59739,
"film": 59740,
"filter": 59741,
"flag": 59742,
"folder": 59743,
"github": 59744,
"gitlab": 59745,
"globe": 59746,
"grid": 59747,
"hash": 59748,
"headphones": 59749,
"heart": 59750,
"help-circle": 59751,
"home": 59752,
"image": 59753,
"inbox": 59754,
"info": 59755,
"instagram": 59756,
"italic": 59757,
"layers": 59758,
"layout": 59759,
"life-buoy": 59760,
"link": 59761,
"link-2": 59762,
"list": 59763,
"loader": 59764,
"lock": 59765,
"log-in": 59766,
"log-out": 59767,
"mail": 59768,
"map": 59769,
"map-pin": 59770,
"maximize": 59771,
"maximize-2": 59772,
"menu": 59773,
"message-circle": 59774,
"message-square": 59775,
"mic": 59776,
"mic-off": 59777,
"minimize": 59778,
"minimize-2": 59779,
"minus": 59780,
"minus-circle": 59781,
"minus-square": 59782,
"monitor": 59783,
"moon": 59784,
"more-horizontal": 59785,
"more-vertical": 59786,
"move": 59787,
"music": 59788,
"navigation": 59789,
"navigation-2": 59790,
"octagon": 59791,
"package": 59792,
"paperclip": 59793,
"pause": 59794,
"pause-circle": 59795,
"percent": 59796,
"phone": 59797,
"phone-call": 59798,
"phone-forwarded": 59799,
"phone-incoming": 59800,
"phone-missed": 59801,
"phone-off": 59802,
"phone-outgoing": 59803,
"pie-chart": 59804,
"play": 59805,
"play-circle": 59806,
"plus": 59807,
"plus-circle": 59808,
"plus-square": 59809,
"pocket": 59810,
"power": 59811,
"printer": 59812,
"radio": 59813,
"refresh-ccw": 59814,
"refresh-cw": 59815,
"repeat": 59816,
"rewind": 59817,
"rotate-ccw": 59818,
"rotate-cw": 59819,
"save": 59820,
"scissors": 59821,
"search": 59822,
"server": 59823,
"settings": 59824,
"share": 59825,
"share-2": 59826,
"shield": 59827,
"shopping-cart": 59828,
"shuffle": 59829,
"sidebar": 59830,
"skip-back": 59831,
"skip-forward": 59832,
"slack": 59833,
"slash": 59834,
"sliders": 59835,
"smartphone": 59836,
"speaker": 59837,
"square": 59838,
"star": 59839,
"stop-circle": 59840,
"sun": 59841,
"sunrise": 59842,
"sunset": 59843,
"tablet": 59844,
"tag": 59845,
"target": 59846,
"thermometer": 59847,
"thumbs-down": 59848,
"thumbs-up": 59849,
"toggle-left": 59850,
"toggle-right": 59851,
"trash": 59852,
"trash-2": 59853,
"trending-down": 59854,
"trending-up": 59855,
"triangle": 59856,
"tv": 59857,
"twitter": 59858,
"type": 59859,
"umbrella": 59860,
"underline": 59861,
"unlock": 59862,
"upload": 59863,
"upload-cloud": 59864,
"user": 59865,
"user-check": 59866,
"user-minus": 59867,
"user-plus": 59868,
"user-x": 59869,
"users": 59870,
"video": 59871,
"video-off": 59872,
"voicemail": 59873,
"volume": 59874,
"volume-1": 59875,
"volume-2": 59876,
"volume-x": 59877,
"watch": 59878,
"wifi": 59879,
"wifi-off": 59880,
"wind": 59881,
"x": 59882,
"x-circle": 59883,
"x-square": 59884,
"zap": 59885,
"zoom-in": 59886,
"zoom-out": 59887
}

View File

@@ -13,8 +13,8 @@
"build-web": "babel ./{,lib}/*.js --out-dir ./dist && cp -R ./glyphmaps ./dist/glyphmaps",
"build-entypo": "mkdir -p tmp/svg && curl https://dl.dropboxusercontent.com/u/4339492/entypo.zip > tmp/entypo.zip && unzip -j tmp/entypo.zip *.svg -x __MACOSX/* -d tmp/svg && fontcustom compile tmp/svg -o tmp -n Entypo -t css -h && node bin/generate-icon tmp/Entypo.css --componentName=Entypo --fontFamily=Entypo --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/Entypo.json > Entypo.js && cp tmp/Entypo.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}",
"build-evilicons": "fontcustom compile node_modules/evil-icons/assets/icons -o tmp -n EvilIcons -t css -h && node bin/generate-icon tmp/EvilIcons.css --prefix=.icon-ei- --componentName=EvilIcons --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/EvilIcons.json --fontFamily=EvilIcons > EvilIcons.js && cp tmp/EvilIcons.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}",
"build-feather": "fontcustom compile node_modules/feather-icons/dist/icons -o tmp -n Feather -t css -h && node bin/generate-icon tmp/Feather.css --prefix=.icon- --componentName=Feather --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/Feather.json --fontFamily=Feather > Feather.js && cp tmp/Feather.ttf Fonts && rm -rf {tmp,.fontcustom-manifest.json}",
"build-fontawesome": "node bin/generate-icon node_modules/font-awesome/css/font-awesome.css --prefix=.fa- --componentName=FontAwesome --fontFamily=FontAwesome --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/FontAwesome.json > FontAwesome.js && cp node_modules/font-awesome/fonts/fontawesome-webfont.ttf Fonts/FontAwesome.ttf",
"build-feather": "node bin/generate-icon Feather/style.css --componentName=Feather --fontFamily=Feather --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/Feather.json > Feather.js && cp Feather/fonts/Feather.ttf Fonts/Feather.ttf",
"build-foundation": "node bin/generate-icon bower_components/foundation-icon-fonts/foundation-icons.css --prefix=.fi- --componentName=Foundation --fontFamily=fontcustom --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/Foundation.json > Foundation.js && cp bower_components/foundation-icon-fonts/foundation-icons.ttf Fonts/Foundation.ttf",
"build-ionicons": "node bin/generate-icon node_modules/ionicons/dist/css/ionicons.css --prefix=.ion- --componentName=Ionicons --fontFamily=Ionicons --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/Ionicons.json > Ionicons.js && cp node_modules/ionicons/dist/fonts/ionicons.ttf Fonts/Ionicons.ttf",
"build-materialicons": "node bin/generate-material-icons node_modules/material-design-icons/iconfont/codepoints --componentName=MaterialIcons --fontFamily='Material Icons' --template=templates/separated-icon-set.tpl --glyphmap=glyphmaps/MaterialIcons.json > MaterialIcons.js && cp node_modules/material-design-icons/iconfont/MaterialIcons-Regular.ttf Fonts/MaterialIcons.ttf",
@@ -76,7 +76,6 @@
"eslint-plugin-prettier": "^2.1.2",
"eslint-plugin-react": "^7.1.0",
"evil-icons": "^1.8.0",
"feather-icons": "^3.2.2",
"font-awesome": "^4.6.3",
"ionicons": "^3.0.0",
"material-design-icons": "^3.0.1",

View File

@@ -231,8 +231,8 @@ babel-core@^6.26.0:
source-map "^0.5.6"
babel-eslint@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.0.0.tgz#ce06f385bdfb5b6d7e603f06222f891abd14c240"
version "8.0.1"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.0.1.tgz#5d718be7a328625d006022eb293ed3008cbd6346"
dependencies:
babel-code-frame "7.0.0-beta.0"
babel-traverse "7.0.0-beta.0"
@@ -1038,8 +1038,8 @@ eslint-config-airbnb@^15.1.0:
eslint-config-airbnb-base "^11.3.0"
eslint-config-prettier@^2.3.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.5.0.tgz#9ecb9296bae4e2e59a3ce361a96c9f825fe67b75"
version "2.6.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.6.0.tgz#f21db0ebb438ad678fb98946097c4bb198befccc"
dependencies:
get-stdin "^5.0.1"
@@ -1085,15 +1085,15 @@ eslint-plugin-jsx-a11y@^5.1.1:
jsx-ast-utils "^1.4.0"
eslint-plugin-prettier@^2.1.2:
version "2.2.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.2.0.tgz#f2837ad063903d73c621e7188fb3d41486434088"
version "2.3.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.3.1.tgz#e7a746c67e716f335274b88295a9ead9f544e44d"
dependencies:
fast-diff "^1.1.1"
jest-docblock "^20.0.1"
jest-docblock "^21.0.0"
eslint-plugin-react@^7.1.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.3.0.tgz#ca9368da36f733fbdc05718ae4e91f778f38e344"
version "7.4.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.4.0.tgz#300a95861b9729c087d362dd64abcc351a74364a"
dependencies:
doctrine "^2.0.0"
has "^1.0.1"
@@ -1112,8 +1112,8 @@ eslint-scope@^3.7.1:
estraverse "^4.1.1"
eslint@^4.3.0:
version "4.7.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.7.0.tgz#d35fc07c472520be3de85b3da11e99c576afd515"
version "4.8.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.8.0.tgz#229ef0e354e0e61d837c7a80fdfba825e199815e"
dependencies:
ajv "^5.2.0"
babel-code-frame "^6.22.0"
@@ -1247,9 +1247,9 @@ fast-levenshtein@~2.0.4:
version "2.0.6"
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
fbjs@^0.8.9:
version "0.8.15"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.15.tgz#4f0695fdfcc16c37c0b07facec8cb4c4091685b9"
fbjs@^0.8.16:
version "0.8.16"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"
dependencies:
core-js "^1.0.0"
isomorphic-fetch "^2.1.1"
@@ -1259,10 +1259,6 @@ fbjs@^0.8.9:
setimmediate "^1.0.5"
ua-parser-js "^0.7.9"
feather-icons@^3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/feather-icons/-/feather-icons-3.2.2.tgz#96c132e4a401d5cc18c03063c87999f47dce442b"
figures@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962"
@@ -1757,9 +1753,9 @@ isstream@~0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
jest-docblock@^20.0.1:
version "20.0.3"
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.0.3.tgz#17bea984342cc33d83c50fbe1545ea0efaa44712"
jest-docblock@^21.0.0:
version "21.2.0"
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414"
js-tokens@^3.0.0, js-tokens@^3.0.2:
version "3.0.2"
@@ -2223,8 +2219,8 @@ preserve@^0.2.0:
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
prettier@^1.5.3:
version "1.7.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.0.tgz#47481588f41f7c90f63938feb202ac82554e7150"
version "1.7.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa"
private@^0.1.6, private@^0.1.7:
version "0.1.7"
@@ -2249,11 +2245,12 @@ promise@^7.1.1:
asap "~2.0.3"
prop-types@^15.5.10:
version "15.5.10"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154"
version "15.6.0"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856"
dependencies:
fbjs "^0.8.9"
fbjs "^0.8.16"
loose-envify "^1.3.1"
object-assign "^4.1.1"
pseudomap@^1.0.2:
version "1.0.2"