diff --git a/lib/create-icon-set.js b/lib/create-icon-set.js index c8d5045..3e5d117 100644 --- a/lib/create-icon-set.js +++ b/lib/create-icon-set.js @@ -67,15 +67,17 @@ export default function createIconSet(glyphMap, fontFamily, fontFile) { const styleDefaults = { fontSize: size, - fontWeight: 'normal', - fontStyle: 'normal', color, }; - props.style = [styleDefaults, style]; - props.ref = this.handleRef; + const styleOverrides = { + fontFamily: fontReference, + fontWeight: 'normal', + fontStyle: 'normal', + }; - styleDefaults.fontFamily = fontReference; + props.style = [styleDefaults, style, styleOverrides]; + props.ref = this.handleRef; return ({glyph}{this.props.children}); }