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

unable to change font family #122

Open
kavehnaseri opened this issue Aug 17, 2020 · 3 comments
Open

unable to change font family #122

kavehnaseri opened this issue Aug 17, 2020 · 3 comments

Comments

@kavehnaseri
Copy link

export default class Login extends Component {
render() {
return (

<Fumi
style={styles.input}
label={'mobile'}
iconClass={FontAwesomeIcon}
labelStyle={styles.input_label}
iconName={'mobile'}
iconColor={'#f95a25'}
iconSize={20}
iconWidth={40}
inputPadding={16}
/>

);
}
}

const styles = StyleSheet.create({
input_label: {
fontFamily: 'yekan',
},
});

@sinclaireric
Copy link

have same issue

1 similar comment
@wtfckkk
Copy link

wtfckkk commented Jan 26, 2021

have same issue

@kopitek8
Copy link

@kavehnaseri @sinclaireric @wtfckkk

I had the same problem with Hoshi. I tried to make changes to the Hoshi.js file itself, but that didn't work either.

I further investigated it, and I found that fontWeight: 'bold' in styles.textInput was causing this error. This was inside Hoshi.js

After nearly a month, I solved it.

This should solve your problem. Use this:

const styles = StyleSheet.create({
input_label: {
fontFamily: 'yekan',
fontWeight: null,
},
});

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