Closed hakimio closed 7 years ago
I was testing latest "stable" release and it seems output improved a lot in the latest development version, but there are still some issues.
@PhenX Could you take a look at this?
Is that better now ?
Yes, it does look better now. Points now have the correct fill and stroke colors, but the legend text is still not bold and too steep angle issue also remains. Did you do anything about the font weight issue?
I improved font weight handling, bug still can't make it to work with CPdf, weird issue ... Is it better for you now ?
About the steep angle, your plot lib handles it with a big clipping rectangle, which is not supported for now. Maybe you can add stroke-linejoin="round"
on the <path>
tag of the graph, which has the same effect.
I updated to the latest code and a "funny" thing happened. Now, the axis text is bold instead of the legend text. Just to be sure, I did double check the generated SVG - when rendered in Chrome or any other browser the legend text is bold and the axis text weight is normal as it should be. Does it look right for you? Or is there any reason you can't test the text rendering?
stroke-linejoin="round"
workaround works great though. It fixes the "angle" issue.
BTW, I use SVGGraph PHP library to generate the graph. If it helps in any way, I can provide a script I use to generate the graphs.
I think it should be better now :)
On Tue, Dec 13, 2016 at 9:15 PM, Tomas Rimkus notifications@github.com wrote:
I updated to the latest code and a "funny" thing happened. Now, the axis text is bold instead of the legend text. Just to be sure, I did double check the generated SVG - when rendered in Chrome or any other browser the legend text is bold and the axis text weight is normal as it should be. Does it look right for you? Or is there any reason you can't test the font rendering?
stroke-linejoin="round" workaround works great though. It fixes the "angle" issue.
BTW, I use SVGGraph https://github.com/goat1000/SVGGraph PHP library to generate the graph. If it helps in any way, I can provide a script I use to generate the graphs.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PhenX/php-svg-lib/issues/10#issuecomment-266848919, or mute the thread https://github.com/notifications/unsubscribe-auth/AACkurZ7xraehn9i-yYGqr5iF8oLlEeaks5rHvzegaJpZM4K9vHE .
Thank you very much. Now everything seems to be the way it should :) Feel free to close this issue if you think the clipping rectangle support is not worth the effort.
PS: The library has improved a lot since the last "stable" version 0.1. If you have some time, you should definitely release a new version and update dompdf's composer.json.
Glad I could help ! I'll make a new release with the improvements :)
Following images are rendered incorrectly when using php-svg-lib. Missing features and incorrect font style (font-family, font-weight and font-size).
https://dl.dropboxusercontent.com/u/14646826/SVG%20rendering%20issues.zip
In case the file gets lost: