GT2/Ejectable/node_modules/@expo/vector-icons/build/createIconSetFromIcoMoon.js

12 lines
529 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
import createIconSet from "./createIconSet";
export default function (config, expoFontName, expoAssetId) {
const glyphMap = {};
config.icons.forEach(icon => {
icon.properties.name.split(/\s*,\s*/g).forEach(name => {
glyphMap[name] = icon.properties.code;
});
});
const fontFamily = expoFontName || config.preferences.fontPref.metadata.fontFamily;
return createIconSet(glyphMap, fontFamily, expoAssetId || `${fontFamily}.ttf`);
}
//# sourceMappingURL=createIconSetFromIcoMoon.js.map