Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i bold the icon or increase a weight of icon? #1188

Open
codal-mpawar opened this issue Jun 22, 2020 · 3 comments
Open

how can i bold the icon or increase a weight of icon? #1188

codal-mpawar opened this issue Jun 22, 2020 · 3 comments

Comments

@codal-mpawar
Copy link

Please help me to increase weight of icons...

@ckasek
Copy link

ckasek commented Jun 25, 2020

This is a question for Google or StackOverflow.

Use fontWeight: 'bold' in your icon style. If the icon has bold version, it will be used.

@LogicAnalysis
Copy link

Is there a place where we can see which icons support bold? I've tried passing { fontWeight: '700' } and 'bold' as a style prop for many icons, but it hasn't ever worked, nor do I see any mention of it in the documentation (except specifically referring to fontAwesome, which I'm not using).

Fonts used: MaterialIcons, and MaterialCommunityIcons.

Oh, and it goes without saying that I've Googled this already, and looked through the issues on here and have not found a solution...

@sirpy
Copy link

sirpy commented Dec 3, 2020

in create-icon-set it always set fontweight to normal not sure why
is this a bug?
@ckasek

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants