Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jU0N7-0003kx-FZ for pgsql-docs@arkaria.postgresql.org; Thu, 30 Apr 2020 04:00:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jU0N6-0006IS-4v for pgsql-docs@arkaria.postgresql.org; Thu, 30 Apr 2020 04:00:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jU0N5-0006IL-Sh for pgsql-docs@lists.postgresql.org; Thu, 30 Apr 2020 04:00:23 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jU0Mz-0000e4-9J for pgsql-docs@lists.postgresql.org; Thu, 30 Apr 2020 04:00:22 +0000 Received: by mail-lf1-x130.google.com with SMTP id d25so10415lfi.11 for ; Wed, 29 Apr 2020 21:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=V+Z01mx93NuLfTF8EigtcRtVoXdYdRrQ7pIxM5+Gyjw=; b=LFYzDyhR7GgCbg8YgaxbWzfCy6QQzEWe5REwKbYkeMec7z1iPLzrEm5cUQFssUgI1C jvfo3TKKvGTzBvZYmszdJvLeXcBHPGlvxLcoX/ZN5HI2LAlpcp+xxhlA1wLARzDM/5vU OUtutgVHjpf2gMCntHShEYDeVMaMm4qXU8ck/cZTMKwK+UJiqYBDmjHUT91i0fzhUDxz Y6mG3/N1fr5Rco47AmW1RMwaYjjm3XZAdeEf81otL1VHEvZYMPJd8NLDwc+p3ax1KlgL qB+mhcqhb+Bj5+VVXLpWd9io0FCAr5ZpR3HOlP0330HTMqWfTNNyuc8XjPZd6c4fPjIC Qtqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=V+Z01mx93NuLfTF8EigtcRtVoXdYdRrQ7pIxM5+Gyjw=; b=MEGmth2xtRW4lSmJsN9zTab4UvGQorT6wL0nMIkQMJDIWbbncQkvjL7txfncwYHaRm SyHAXkcIKtUgKtnTP08as8a5gvsgsj58CpQdzVhDlzlnxYlRyashgOUJMKoCkH03fNj+ NMnX3LJG7yErLAtpAo+DdD1fETdhNFJoecjlIcCrEh922EkzYVV3nryzcVKADjQyZJy/ hjAYXQ5Y22o27c6+I66xXv/810n2enem6mQ1PF9pGwc9S5UORyS1NfGtfjpAYIq0rh0X 3mlM5OPCvVlaPYNBUOwRCy6bRGII8wEpi+qPgp5H/LYU4id9sYtvK/gB4+w8wh+WFNsR SBfg== X-Gm-Message-State: AGi0Pua3cRLwJWyZnS7AqJ2jXRsARSQStnQnWTH20MormCcPT4G3e8G2 HUMI+AMuUn+4GTK12lm3io8sAMiR X-Google-Smtp-Source: APiQypIjVGRqkCmUz9bch1Z/eJOiuKlijBuLtjR6glqf2ixMLW/D1NtNMHiHmqC/xhN8jwG4QGUtEw== X-Received: by 2002:ac2:5c4e:: with SMTP id s14mr730933lfp.77.1588219215002; Wed, 29 Apr 2020 21:00:15 -0700 (PDT) Received: from [1.0.0.7] ([178.155.6.242]) by smtp.gmail.com with ESMTPSA id a26sm3854269lfl.66.2020.04.29.21.00.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Apr 2020 21:00:14 -0700 (PDT) Subject: Re: Rendering pi more nicely in PDF To: Alvaro Herrera , Peter Eisentraut Cc: Tom Lane , pgsql-docs@lists.postgresql.org References: <20200429212331.GA13762@alvherre.pgsql> From: Alexander Lakhin Message-ID: <5ac5fd21-4f40-0190-ed20-57e7821f51dc@gmail.com> Date: Thu, 30 Apr 2020 07:00:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200429212331.GA13762@alvherre.pgsql> Content-Type: multipart/mixed; boundary="------------BA8CDFB35838C111CF8D14C4" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------BA8CDFB35838C111CF8D14C4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 --------------BA8CDFB35838C111CF8D14C4 Content-Type: text/xml; charset=UTF-8; name="fop-config.xml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fop-config.xml" . /usr/share/fonts/truetype/ubuntu-font-family /usr/share/fonts/truetype/dejavu /usr/share/fonts/truetype/freefont --------------BA8CDFB35838C111CF8D14C4--