pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Rendering pi more nicely in PDF
Date: Thu, 30 Apr 2020 07:00:07 +0300
Message-ID: <5ac5fd21-4f40-0190-ed20-57e7821f51dc@gmail.com> (raw)
In-Reply-To: <20200429212331.GA13762@alvherre.pgsql>
References: <20200429212331.GA13762@alvherre.pgsql>

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

Attachments:

fop-config.xml (text/xml, 1.8K) download <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>

view thread (11+ messages)

Message-ID: <5ac5fd21-4f40-0190-ed20-57e7821f51dc@gmail.com>
Permalink:  ../5ac5fd21-4f40-0190-ed20-57e7821f51dc@gmail.com/
Also on:    postgresql.org/message-id/5ac5fd21-4f40-0190-ed20-57e7821f51dc@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: exclusion@gmail.com, alvherre@2ndquadrant.com, peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, pgsql-docs@lists.postgresql.org
  Subject: Re: Rendering pi more nicely in PDF
  In-Reply-To: <5ac5fd21-4f40-0190-ed20-57e7821f51dc@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox