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

loading SVG file through img element #430

Open
gbala2412 opened this issue Jan 2, 2019 · 2 comments
Open

loading SVG file through img element #430

gbala2412 opened this issue Jan 2, 2019 · 2 comments
Labels

Comments

@gbala2412
Copy link

I have to load the SVG file created by Mathjax-Node through img element. In such a case is there any option to increase/decrease the font-size?

@pkra pkra added the Question label Jan 2, 2019
@pkra
Copy link
Contributor

pkra commented Jan 2, 2019

You would need to extract and copy the top-level style attribute over to the img tag to get a decent rendering.

Beware that using an img tag has many drawbacks (e.g., no CSS inheritance, worse rendering of fallback fonts).

@gbala2412
Copy link
Author

Thanks for the reply, I will try your suggestion.

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

No branches or pull requests

2 participants