-
Notifications
You must be signed in to change notification settings - Fork 499
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 fonts affect subsequent text #494
Comments
Prawn SVG is only supposed to be setting the font within the block that draws the graphic object sourced from the SVG. It appears this setting is lingering. We'll have to see if this is the responsibility of Prawn SVG (which I think it is) or whether we need to revert the font settings ourselves after calling Prawn SVG. |
Thanks for reporting, @kastork! |
Here's a link to the upstream issue: mogest/prawn-svg#80 |
I can apply a workaround that will isolate the font settings that get applied by prawn-svg. |
The workaround is in place. A fix upstream in Prawn SVG will merely be redundant as far as Asciidoctor PDF is concerned, though that fix still should be made. |
…t attribute (PR asciidoctor#541) * allow image type to be specified using format attribute * use the term "format" instead of "type" to refer to image format * resolves asciidoctor#494 prevent inline SVG from changing document font
It is possible this is a prawn bug...
Using default themes and styles, font use following an SVG image matches the SVG rather than the document's style.
Example attached.
The file suffix is
.txt
due to github not accepting.adoc
, but this is an asciidoc file.svg_font_reproducer.txt
svg_font_reproducer.pdf
The text was updated successfully, but these errors were encountered: