Wednesday, September 25, 2019

Re: Bad fonts in pdf

On Fri, Sep 20, 2019 at 08:20:26AM -0000, Stuart Henderson wrote:
>On 2019-09-19, openbsd-misc-nospam@riseup.net <openbsd-misc-nospam@riseup.net> wrote:
>> Here is screenshot: https://screenshots.firefox.com/LyKbRyGMRT3sDHbu/null
>>
>> I had this problem in the past, but can't remeber what font should I install?
>>
>
>It might be helpful to explain what the problem is because it's not obvious.

To render that PDF as intended, you need some fonts that are
metrically-compatible with Times and Helvetica (or at least similarly
looking). OpenBSD has such fonts in the "liberation-fonts" package,
and you also get the font aliases set as needed.

Stuart is right, there is not enough info in the original request to
derive the above, but I enjoyed doing a bit of detective work. The PDF
in the screenshot can be downloaded from
https://www.etsi.org/deliver/etsi_tr/102200_102299/102216/03.00.00_60/tr_102216v030000p.pdf

Then "mutool info" will show what fonts are needed in that file:

Fonts (8):
1 (73 0 R): Type1 'Times-Roman' WinAnsiEncoding (139 0 R)
1 (73 0 R): Type1 'Helvetica-Bold' WinAnsiEncoding (151 0 R)
1 (73 0 R): Type1 'Helvetica' WinAnsiEncoding (152 0 R)
1 (73 0 R): Type1 'Helvetica-Oblique' WinAnsiEncoding (153 0 R)
2 (1 0 R): Type1 'Helvetica-BoldOblique' WinAnsiEncoding (59 0 R)
4 (10 0 R): Type1 'Times-Bold' WinAnsiEncoding (60 0 R)
5 (13 0 R): Type1 'Times-Italic' WinAnsiEncoding (61 0 R)
6 (17 0 R): Type1 'Symbol' (62 0 R)

No comments:

Post a Comment