forked from oblador/react-native-vector-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
182 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
export { default as createIconSet } from './lib/create-icon-set'; | ||
export { default as createIconSetFromFontello } from './lib/create-icon-set-from-fontello'; | ||
export { default as createIconSetFromIcoMoon } from './lib/create-icon-set-from-icomoon'; | ||
export { | ||
default as createIconSetFromFontello, | ||
} from './lib/create-icon-set-from-fontello'; | ||
export { | ||
default as createIconSetFromIcoMoon, | ||
} from './lib/create-icon-set-from-icomoon'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import createIconSet from './create-icon-set'; | ||
|
||
export default function createIconSetFromFontello(config, fontFamilyArg, fontFile) { | ||
export default function createIconSetFromFontello( | ||
config, | ||
fontFamilyArg, | ||
fontFile | ||
) { | ||
const glyphMap = {}; | ||
config.glyphs.forEach((glyph) => { | ||
config.glyphs.forEach(glyph => { | ||
glyphMap[glyph.css] = glyph.code; | ||
}); | ||
|
||
const fontFamily = fontFamilyArg || config.name || 'fontello'; | ||
|
||
return createIconSet( | ||
glyphMap, | ||
fontFamily, | ||
fontFile || `${fontFamily}.ttf`, | ||
); | ||
return createIconSet(glyphMap, fontFamily, fontFile || `${fontFamily}.ttf`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import createIconSet from './create-icon-set'; | ||
|
||
export default function createIconSetFromIcoMoon(config, fontFamilyArg, fontFile) { | ||
export default function createIconSetFromIcoMoon( | ||
config, | ||
fontFamilyArg, | ||
fontFile | ||
) { | ||
const glyphMap = {}; | ||
config.icons.forEach((icon) => { | ||
config.icons.forEach(icon => { | ||
glyphMap[icon.properties.name] = icon.properties.code; | ||
}); | ||
|
||
const fontFamily = fontFamilyArg || config.preferences.fontPref.metadata.fontFamily; | ||
const fontFamily = | ||
fontFamilyArg || config.preferences.fontPref.metadata.fontFamily; | ||
|
||
return createIconSet( | ||
glyphMap, | ||
fontFamily, | ||
fontFile || `${fontFamily}.ttf`, | ||
); | ||
return createIconSet(glyphMap, fontFamily, fontFile || `${fontFamily}.ttf`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.