You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a document that uses stem equations and that I compile both with ascidoctor (to produce an HTML file) and asciidoctor-pdf (to produce a PDF file). With asciidoctor-pdf I use the extension asciidoctor-mathematical and mathematical-format=svg.
Now in PDF output the font used for the equations is very poor. I am following this document. There is a section about the font in SVG images but I do not understand how to change the font for stem equations: it reports the example for font in diagram not in stem equations.
In the following archive there are two example, one from an HTM file and one from a PDF file, to proof tha bad quality font in PDF.
This has nothing to do with fonts. Asciidoctor Mathematical converts equations into SVG paths using mathematical (which uses the Math fonts at a low level, but what it makes are paths). Asciidoctor PDF then converts these paths into PDF objects using Prawn.
Right now, the height of the image cannot be controlled. It is preset by Asciidoctor Mathematical (based on a zoom level of 1). I always get a height 17px (which works out to 12.75pt) for a single line and 27px for multiple lines.
This one size fits causes problems if the base font size of your document doesn't match. Asciidoctor Mathematical needs to provide a way to customize the size, so please file an issue there.
As far as Asciidoctor PDF is concerned, this is a duplicate of this issue: #1483 (comment). The decision as to which size to use is made in Asciidoctor Mathematical, though as the issue suggests, we may provide hints back and forth to get it to fit better in the line.
I wrote a document that uses
stem
equations and that I compile both withascidoctor
(to produce an HTML file) andasciidoctor-pdf
(to produce a PDF file). Withasciidoctor-pdf
I use the extensionasciidoctor-mathematical
andmathematical-format=svg
.Now in PDF output the font used for the equations is very poor. I am following this document. There is a section about the font in SVG images but I do not understand how to change the font for
stem
equations: it reports the example for font in diagram not instem
equations.In the following archive there are two example, one from an HTM file and one from a PDF file, to proof tha bad quality font in PDF.
font_demo.tar.gz
I would be grateful if you can suggest also a good font for that.
TIA,
Angelo.
The text was updated successfully, but these errors were encountered: