D8 theme for the Digital Herbarium repo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
481 B

var Promise = require("bluebird"),
getIconList = require("./getIconList"),
getFontData = require("./getFontData");
function getGlyphs() {
return Promise.all([getIconList(), getFontData()]).spread(function (icons, fontData) {
return icons.map(function (icon) {
return {
id: icon.id,
unicodeHex: icon.unicodeHex,
unicodeDec: icon.unicodeDec,
data: fontData[icon.unicodeDec].data
}
});
});
}
module.exports = getGlyphs;