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

Not rendering and broken pdf with font-size="smaller" #103

Closed
bernhardreiter opened this issue Jul 4, 2019 · 6 comments
Closed

Not rendering and broken pdf with font-size="smaller" #103

bernhardreiter opened this issue Jul 4, 2019 · 6 comments

Comments

@bernhardreiter
Copy link
Contributor

Trying to render an svg, some elements are not rendered correctly.
Ideas is the rotate of the "Sum of days"
Using 100f3c6 (HEAD -> master)

@bernhardreiter
Copy link
Contributor Author

@HackbrettXXX
Copy link
Member

The issue is font-size="smaller". We only support pixel values here. So this is kind of a duplicate of #101.

@bernhardreiter
Copy link
Contributor Author

bernhardreiter commented Jul 5, 2019

When used in our vuejs application with this SVG the application is send in an endless loop. This should not happen, even if some feature is not supported. Update: this endless loop maybe about something else, it seems this issue just covered it.

(#95 which is closed by #101 is about different measurement units in the jsPDF object, if font-size="smaller" is the problem, it would be about unsupported relative units.)

@bernhardreiter bernhardreiter changed the title Not rendering some elements (after rotate?) Not rendering and broken pdf with font-size="smaller" Jul 5, 2019
@bernhardreiter
Copy link
Contributor Author

Confirmation from my side that replacing "smaller" with "9" will lead to the full SVG rendered in chromium and rendered at all in a libpoppler based viewer!

So this is a known issue of "not supporting most other units than px (or pt for that matter)" mentioned in #82.

@HackbrettXXX thanks for your hint!

@HackbrettXXX
Copy link
Member

(#95 which is closed by #101 is about different measurement units in the jsPDF object, if font-size="smaller" is the problem, it would be about unsupported relative units.)

Sorry I meant #100

I'm closing this as a duplicate of #100.

@bernhardreiter
Copy link
Contributor Author

The difference between #100 and this one is that in case of "1em" there is still a text seen and a valid pdf. But I guess that "em" will have the same problem, so it is close enough.

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

No branches or pull requests

2 participants