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

Add character widths for "Red Hat Text" font #2927

Closed
2 tasks done
dlabrecq opened this issue Oct 22, 2024 · 0 comments
Closed
2 tasks done

Add character widths for "Red Hat Text" font #2927

dlabrecq opened this issue Oct 22, 2024 · 0 comments
Labels
Type: Enhancement ✏️ An enhancement or feature proposal that will be addressed after the next release

Comments

@dlabrecq
Copy link
Contributor

dlabrecq commented Oct 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Feature Request

We're using the "Red Hat Text" font in our custom theme. However, the `TextSize.approximateTextSize` function defaults to using font widths for Helvetica.

To achieve proper text sizing, I'd like to add character widths for the "Red Hat Text" font to packages/victory-core/src/victory-util/textsize.js.

Google fonts
https://fonts.google.com/specimen/Red+Hat+Text?preview.text=Redhattext
@dlabrecq dlabrecq added the Type: Enhancement ✏️ An enhancement or feature proposal that will be addressed after the next release label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement ✏️ An enhancement or feature proposal that will be addressed after the next release
Projects
None yet
Development

No branches or pull requests

1 participant