-
Notifications
You must be signed in to change notification settings - Fork 353
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
Charts - update font-family #11116
Comments
As far as I can tell, all of the axis labels, legends, and tooltips that I see are using the wrong font ("RedHatText" instead of "Red Hat Text") Here's an example of text that's using the correct font-family. And FWIW wherever the correct family is specified, it looks like the font famnily names are a fallback for the
|
@mcoker Why do we have both "Red Hat Text" and "RedHatText"? Note that we don't use a CSS variable for |
@dlabrecq gotcha! @lboehling do you remember anything around why we're using "Red Hat Text" vs "RedHatText" as the font family name on the page? Curious if we're aligning with any other groups at RH on that, and if we should consider declaring the font-family in PF as both "Red Hat Text" and "RedHatText" for anyone that may not be using our font-family token and might have specified "RedHatText" as their font family somewhere. |
Turns out that Victory implemented a reliable way to calculate character widths dynamically. The existing character map is now a backup (e.g., when there is no window object) -- likely for use with React native (i.e., iOS, Android, etc.). The "Red Hat Text" (avg: 0.5413177633285524) character width is comparable to the previous font. Considering "RedHatText" (avg: 0.5341940789473685) is already supported, we don't need to update Victory upstream. |
closed by #11122 |
Just noticed that axis labels and tooltips look like they're not using the correct font-family. Specifically it looks like these places:
patternfly-react/packages/react-charts/src/victory/components/ChartTheme/themes/base-theme.ts
Line 129 in a3ffb39
patternfly-react/packages/react-charts/src/victory/components/ChartBoxPlot/examples/ChartBoxPlot.md
Line 227 in a3ffb39
patternfly-react/packages/react-charts/src/victory/components/ChartTooltip/examples/ChartTooltip.md
Line 306 in a3ffb39
cc @dlabrecq
The text was updated successfully, but these errors were encountered: