react-native-vector-icons icon indicating copy to clipboard operation
react-native-vector-icons copied to clipboard

fontweight is always normal

Open sirpy opened this issue 4 years ago • 1 comments

  • [x] Review the documentation: https://github.com/oblador/react-native-vector-icons
  • [x] Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues

Environment

react-native-web

Description

the create-icon-set.js contains code that always override some font styles https://github.com/oblador/react-native-vector-icons/issues/1188#issuecomment-737722786 so fontWeight and fontStyle are always normal and not possible to modify by passing style to <Icon> component is this intentional? maybe add comment in code if so

const styleOverrides = {
        fontFamily: fontReference,
        fontWeight: 'normal',
        fontStyle: 'normal',
      };

      props.style = [styleDefaults, style, styleOverrides, fontStyle || {}];

sirpy avatar Dec 03 '20 07:12 sirpy

bump

sirpy avatar Apr 23 '23 09:04 sirpy