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

Weights and styles of standard fonts should not be their own families #998

Closed
jurgenbelien opened this issue Sep 3, 2020 · 1 comment
Closed

Comments

@jurgenbelien
Copy link

jurgenbelien commented Sep 3, 2020

Currently, setting just the weight or style of a standard font fails, because they are defined as their own families:

export default [
  'Courier',
  'Courier-Bold',
  'Courier-Oblique',
  [...]
];

It would be helpful if weights and styles are all registered under the correct family, like so:

<Text style={{fontFamily: "Helvetica"}}>
  This is an example of 
  <Text style={{fontStyle: "italic"}}>Italic text</Text>
</Text>

Instead of:

<Text style={{fontFamily: "Helvetica"}}>
  This is an example of 
  <Text style={{fontStyle: "Helvetica-Oblique"}}>Italic text</Text>
</Text>
@diegomura
Copy link
Owner

Keeping #649 to track this. I'll try to get into this soon

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

No branches or pull requests

2 participants