[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Garbage copied from PDF when using certain fonts
From: |
Werner LEMBERG |
Subject: |
Re: Garbage copied from PDF when using certain fonts |
Date: |
Sat, 14 Aug 2021 10:00:17 +0000 (UTC) |
> When using certain fonts (in my case, Noto CJK, both pan-CJK and
> subset versions), the output looks right but when copied from the
> generated PDF file, everything becomes garbage. [...]
Confirmed.
> It seems to be all about CID. Maybe related to Issue #6058?
Yes and no. The fix for #6058 was to make CID fonts display correctly
at all. AFAICS, to make copy and paste work for CID fonts it is
necessary to add a ToUnicode map. We don't do that currently. [This
is probably worth an entry in our issues database.] Masamichi-san,
please correct me if I am wrong.
As a temporary solution, use a TTF version of this Noto font. For
testing purposes, I've downloaded the font in question from
https://gitlab.erudit.org/erudit/portail/eruditorg/-/blob/master/eruditorg/static/fonts/Noto/NotoSerifCJKsc-Regular.ttf
This makes copy and paste work just fine. Another advantage is that
the output file is only 0.2MByte (probably due to good subsetting
capabilities of ghostscript 9.54 on my GNU/Linux box); using the
CID-keyed font the output file is 1.1 MByte.
Werner
- Garbage copied from PDF when using certain fonts, Huanyu Liu, 2021/08/14
- Garbage copied from PDF when using certain fonts, Huanyu Liu, 2021/08/14
- Re: Garbage copied from PDF when using certain fonts,
Werner LEMBERG <=
- Re: Garbage copied from PDF when using certain fonts, Knut Petersen, 2021/08/16
- Re: Garbage copied from PDF when using certain fonts, Huanyu Liu, 2021/08/16
- Re: Garbage copied from PDF when using certain fonts, Werner LEMBERG, 2021/08/16
- Re: Garbage copied from PDF when using certain fonts, Masamichi Hosoda, 2021/08/17
- Re: Garbage copied from PDF when using certain fonts, Werner LEMBERG, 2021/08/20
- Re: Garbage copied from PDF when using certain fonts, Masamichi Hosoda, 2021/08/20
- Re: Garbage copied from PDF when using certain fonts, Werner LEMBERG, 2021/08/21
Re: Garbage copied from PDF when using certain fonts, Huanyu Liu, 2021/08/14