-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
svg font size units #3
Comments
It states here that the value of If anything, the font-size unit could be made configurable, I guess. EDIT: Actually, ignore that. The library is using css styles for the font-size, not the svg attribute. The same applies though, IMO. EDIT 2: Ha, no, actually, you're right, I didn't know that the size in |
Yes, exactly, java.awt.Font is in points and the svg font size should be the same. I should've mentioned that in the original post. |
Bump. Any thoughts on this? Thanks. |
I think you are correct. I'll do some investigation and change it. |
In fact, 'px' is working better that 'pt' at the moment because the other dimensions in the SVG are defaulting to 'px' (so everything is consistent, even it not matching the Java2D standard unit size). I'll continue analysing this alongside the viewBox request that is also outstanding. |
For me this causes big issues when exporting the same JFreeChart chart to PDF and SVG. Fonts are different and as a result the whole chart looks different. I'm attaching the sample for comparison here. |
Shouldn't the font size for text elements be in points rather than pixels? getSVGFontStyle() prints 'px' for the 'font-size' attribute.
The text was updated successfully, but these errors were encountered: