Bug 461499 - Okular: Simplified Chinese display as a variant (Japanese) glyph
Summary: Okular: Simplified Chinese display as a variant (Japanese) glyph
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-06 13:46 UTC by Firestar-Reimu
Modified: 2023-11-10 07:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
okular use JP fonts instead of CN while edge have no fonts (2.39 MB, application/pdf)
2023-11-10 07:43 UTC, Firestar-Reimu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Firestar-Reimu 2022-11-06 13:46:55 UTC
Wrong display: https://imgse.com/i/xXc0Qe

Correct display: https://imgse.com/i/xjJ1mD

You can see the characters: “探”、“将”、“关”

I use Okular + poppler-data

```
$ pdffonts 1.pdf | iconv -f gbk
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
方正书宋简体                         CID TrueType      GBK-EUC-H        no  no  no     227  0
方正书宋_GBK                         CID TrueType      GBK-EUC-H        no  no  no      64  0
方正黑体_GBK                         CID TrueType      GBK-EUC-H        no  no  no     102  0
方正楷体_GBK                         CID TrueType      GBK-EUC-H        no  no  no      65  0
DY1+ZKWGVK-1                         Type 1            Custom           yes no  yes     66  0
DY2+ZKWGVK-2                         Type 1            Custom           yes no  yes     67  0
DY3+ZKWGVK-3                         Type 1            Custom           yes no  yes    228  0
DY4+ZKWGVK-4                         Type 1            Custom           yes no  yes    229  0
DY5+ZKWGVK-5                         Type 1            Custom           yes no  yes    230  0
DY6+ZKWGVK-6                         Type 1            Custom           yes no  yes     69  0
DY7+ZKWGVK-7                         Type 1            Custom           yes no  yes    104  0
DY8+ZKWGVK-8                         Type 1            Custom           yes no  yes    131  0
DY9+ZKWGVL-9                         Type 1            Custom           yes no  yes    219  0
DY10+ZKWGVL-10                       Type 1            Custom           yes no  yes    211  0
DY11+ZKWGVN-11                       Type 1            Custom           yes no  yes    183  0
DY12+ZKWGVN-12                       Type 1            Custom           yes no  yes    203  0
DY13+ZKWGVO-13                       Type 1            Custom           yes no  yes    194  0
DY14+ZKWGVO-14                       Type 1            Custom           yes no  yes    182  0
DY15+ZKWGVP-15                       Type 1            Custom           yes no  yes    172  0
DY16+ZKWGVP-16                       Type 1            Custom           yes no  yes    163  0
DY17+ZKWGVQ-17                       Type 1            Custom           yes no  yes    155  0
DY18+ZKWGVR-18                       Type 1            Custom           yes no  yes    145  0
DY19+ZKWGVS-19                       Type 1            Custom           yes no  yes    130  0
DY20+ZKWGVT-20                       Type 1            Custom           yes no  yes    120  0
DY21+ZKWGVT-21                       Type 1            Custom           yes no  yes    103  0
DY22+ZKWGVT-22                       Type 1            Custom           yes no  yes    105  0
DY23+ZKWGVT-23                       Type 1            Custom           yes no  yes     96  0
DY24+ZKWGVT-24                       Type 1            Custom           yes no  yes     68  0
DY25+ZKWGVT-25                       Type 1            Custom           yes no  yes     70  0
```

PDF: https://pb.nichi.co/unveil-laptop-foil

It used Noto Sans CJK SC as a substitute

https://imgse.com/i/xXjE3F

but:

1. this is not SC (simplified Chinese) glyphs
2. I set SC higher than JP in `/etc/fonts/conf.d/64-language-selector-prefer.conf`
Comment 1 Firestar-Reimu 2023-11-10 07:43:05 UTC
Created attachment 163003 [details]
okular use JP fonts instead of CN while edge have no fonts

okular: use JP fonts instead of CN
edge: have no CJK fonts
firefox: no problem