Hello hackers, 30.04.2020 00:23, Alvaro Herrera wrote: > But apparently it's not sufficient -- the new font is not used > everywhere. For example footnotes seem to use a different font than the > main body of text. (I altered the fontname to Gentium, which I like > better, and uses a different glyph for "g" which is easy to spot ... and > notably absent in footnote in page 5 under 1.4 Accessing a Database.) > > I +1 the idea of using a more complete font if it means we can render > contributor names better, though :-) We at Postgres Pro use the attached fop-config.xml (passed to fop as "-c .../fop-config.xml"). Please try it and see, whether the glyphs rendered as expected. You can also look at the generated pdf: https://postgrespro.com/media/docs/postgresql/12/en/postgres-A4.pdf But π (pi) is still rendered unusual as you can see on the page 179, so I would prefer the symbol font anyway.
Best regards, Alexander
<fop version="1.0"> <base>.</base> <renderers> <renderer mime="application/pdf"> <fonts> <directory recursive="true">/usr/share/fonts/truetype/ubuntu-font-family</directory> <directory recursive="true">/usr/share/fonts/truetype/dejavu</directory> <directory recursive="true">/usr/share/fonts/truetype/freefont</directory> </fonts> </renderer> </renderers> <fonts> <substitutions> <substitution> <from font-family="sans-serif" font-weight="bold"/> <to font-family="DejaVu Sans Bold"/> </substitution> <substitution> <from font-family="sans-serif" font-weight="bold" font-style="italic"/> <to font-family="DejaVu Sans Bold Oblique"/> </substitution> <substitution> <from font-family="Liberation Sans"/> <to font-family="DejaVu Sans"/> </substitution> <substitution> <from font-family="monospace"/> <to font-family="FreeMono"/> </substitution> <substitution> <from font-family="monospace" font-weight="bold"/> <to font-family="FreeMono Bold"/> </substitution> <substitution> <from font-family="monospace" font-style="italic"/> <to font-family="FreeMono Oblique"/> </substitution> <substitution> <from font-family="monospace" font-weight="bold" font-style="italic"/> <to font-family="FreeMono Bold Oblique"/> </substitution> <substitution> <from font-family="serif"/> <to font-family="DejaVu Serif"/> </substitution> <substitution> <from font-family="serif" font-weight="bold"/> <to font-family="DejaVu Serif Bold"/> </substitution> <substitution> <from font-family="serif" font-weight="bold" font-style="italic"/> <to font-family="DejaVu Serif Bold Italic"/> </substitution> <substitution> <from font-family="serif" font-style="italic"/> <to font-family="DejaVu Serif Italic"/> </substitution> </substitutions> </fonts> </fop>