Summary: | Most of the text in RISC-V ISA specification PDF is invisible with text hinting enabled | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Jure Repinc <jlp> |
Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
Status: | CONFIRMED --- | ||
Severity: | major | CC: | aacid, qiao0junfeng |
Priority: | NOR | ||
Version First Reported In: | 25.04.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
URL: | https://github.com/riscv/riscv-isa-manual/releases | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Example of problematic RISC-V ISA spec PDF
Screenshot of last page of Preface Screenshot of first page of Chapter 1 - Introduction |
> Most of the text in Okular is invisible
It works fine for me.
Attach a screenshot of your problem.
Created attachment 181522 [details]
Screenshot of last page of Preface
Created attachment 181523 [details]
Screenshot of first page of Chapter 1 - Introduction
can you try okular from flathub? https://flathub.org/apps/org.kde.okular Yeah, works fine in Okular from Flathub. Do they use different fonts or something else is maybe different. This is the info from openSUSE: $ pdffonts -subst riscv-privileged-20250508.pdf name object ID substitute font substitute font file ------------------------------------ --------- ------------------------------------ ------------------------------------ Courier 138 0 Courier /usr/share/fonts/truetype/Courier.ttf Flathub Okulart says /run/host/fonts/truetype/Courier.ttf for the non-embedded font. /usr/share/fonts/truetype/Courier.ttf on openSUSE is coming from xorg-x11-fonts-converted package of version 7.6 $ fc-query /usr/share/fonts/truetype/Courier.ttf Pattern has 29 elts (size 32) family: "Courier"(s) familylang: "en"(s) style: "Regular"(s) stylelang: "en"(s) fullname: "Courier"(s) fullnamelang: "en"(s) slant: 0(i)(s) weight: 80(f)(s) width: 100(f)(s) spacing: 100(i)(s) foundry: "PfEd"(s) file: "/usr/share/fonts/truetype/Courier.ttf"(s) index: 0(i)(s) outline: True(s) scalable: True(s) charset: 0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffdffe ffffffff ffffffff 0001: ffceffff ffffcff7 ffff3dff 7f0fffff 00040000 00000000 00000000 00200000 0002: 00000000 00000000 00000000 00000000 00000000 00000000 3f0000c0 00000000 0003: 00000000 00000000 00000000 00000000 01080000 00320048 00000059 00000000 0020: 77980000 56010047 00000010 eff10000 00000000 00000080 00000000 00000000 0021: 00000000 00000044 78000000 00000000 003f0000 00200100 00000000 00000000 0022: c4040000 10000200 00000100 00000033 00000000 00000000 00000000 00000000 0023: 00010004 00000003 00000000 00000000 00000000 00000000 00000000 00000000 0025: 11111005 10101010 ffff0000 00001fff 000f1111 10440001 03000801 00000000 0026: 00000000 1c000000 00000005 00000c69 00000000 00000000 00000000 00000000 00fb: 0000001f 00000000 00000000 00000000 00000000 00000000 00000000 00000000 (s) lang: aa|ay|bi|br|ca|ch|co|cs|da|de|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hu|ia|id|ie|io|is|it|ki|kl|lb|lt|mg|mh|mt|nb|nds|nl|nn|no|nr|nso|oc|om|pl|pt|rm|sk|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|wo|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za|agr|ayc|bem|dsb|lij|mfe|mjw|nhn|niu|tpi|unm|wae|yuw(s) fontversion: 65732(i)(s) capability: "otlayout:latn"(s) fontformat: "TrueType"(s) decorative: False(s) postscriptname: "Courier"(s) color: False(s) symbol: False(s) variable: False(s) fonthashint: True(s) order: 0(i)(s) namedinstance: False(s) fontwrapper: "SFNT"(s) pdffonts riscv-privileged-20250508.pdf name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- acec3e+AtkinsonHyperlegible-Regul TrueType WinAnsi yes no yes 10 0 bd3584+AtkinsonHyperlegible-Bold TrueType WinAnsi yes no yes 29 0 289fed+JetBrainsMono-Regular TrueType WinAnsi yes no yes 41 0 b27510+AtkinsonHyperlegible-Itali TrueType WinAnsi yes no yes 30 0 fe6826+AtkinsonHyperlegible-Itali TrueType WinAnsi yes no yes 31 0 3a96a3+AtkinsonHyperlegible-BoldI TrueType WinAnsi yes no yes 35 0 e01585+mplus-1p-regular TrueType WinAnsi yes no yes 36 0 2ba361+JetBrainsMono-Italic TrueType WinAnsi yes no yes 42 0 f3805c+FontAwesome5Free-Solid TrueType WinAnsi yes no yes 54 0 95c240+JetBrainsMono-Bold TrueType WinAnsi yes no yes 127 0 dda707+mplus-1p-regular TrueType WinAnsi yes no yes 128 0 Courier Type 1 WinAnsi no no no 138 0 a07d50+AtkinsonHyperlegible-Regul TrueType WinAnsi yes no yes 201 0 fadaa0+JetBrainsMono-Regular TrueType WinAnsi yes no yes 409 0 I'm 98% sure that /usr/share/fonts/truetype/Courier.ttf and /run/host/fonts/truetype/Courier.ttf are the same file. Anyhow, to me this means "this is a opensuse problem" if it works on the flathub version of okular. Not much we can really do here, i suggest you report this to opensuse. 🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone! I managed to reproduce the bug even with Flathub version, and also workaround the bug in the openSUSE version. It looks like the bug happens when I enable the "Enable text hinting" option in "Performance" section of Okular settings. 🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone! Don´t enable text hinting then :D j/k I have the same experience for many other (scientific PDFs with many symbols) PDFs, when hinting is enabled, symbols disappear. Naively I thought text hinting would be good and should be turned on. Is it possible to fix this bug, or at least show a warning in the settings tab? |
Created attachment 181449 [details] Example of problematic RISC-V ISA spec PDF SUMMARY I downloaded the latest RISC-V ISA specification release 20250508 PDFs and most of the text in them is not visible in Okular (version 25.04.1, Poppler 25.04.0). The text is still invisible when I change accessibility setting and change the paper color to something that is not white. The text can can be selected and pasted into Kate for example. The text is visible in Dolphin information panel in preview when you hover over the document with the mouse. It is also visible in Evince (version 48.0, same Poppler version) viewer. STEPS TO REPRODUCE 1. open the RISC-V ISA specification release 20250508 PDF OBSERVED RESULT Most of the text in Okular is invisible EXPECTED RESULT Display all text, similar to Evince SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20250515 KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.14.0 Qt Version: 6.9.0 Kernel Version: 6.14.6-1-default (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics Memory: 30.7 GiB of RAM Graphics Processor: AMD Radeon 780M Manufacturer: SLIMBOOK Product Name: EXCALIBUR-16-AMD7 System Version: 1.0