Bug 349314 - can't display correctly of Chinese book
Summary: can't display correctly of Chinese book
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.19.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-17 23:58 UTC by nsynet
Modified: 2015-07-01 21:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the pdf file that can't read (1.04 MB, application/pdf)
2015-06-18 00:00 UTC, nsynet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nsynet 2015-06-17 23:58:49 UTC
the book that can't read

okular can't display book correcly, just wrong words,It looks like there are missing fonts (which are not embedded in the document).

I use mupdf and can read it correcly, and I notice there is print as below:

nisy@nisy-ubuntu:/media/nisy/sda1_WinXP/_Technology/98_my_project/_27_改进开源软件/乱码问题$ mupdf ./1_\[雅舍菁华\].梁秋实.文字版.PDF 
warning: workaround for S22PDF lying about chinese font encodings
warning: ... repeated 2 times ...
warning: workaround for S22PDF lying about chinese font encodings
warning: ... repeated 2 times ...


so I guess mupdf had workaround to avoid font issue, so I checked in mupdf code,find its code should be:

	pdf_load_font
		|__pdf_load_simple_font 
				|__ pdf_load_simple_font_by_name
					|__ 				fz_warn(ctx, "workaround for S22PDF lying about chinese font encodings");


Because okular also have font mechanism for pdf backend, so can okular consider to check mupdf 's mechanism, and merge mupdf 's method to avoid this issue? Thanks.

Reproducible: Always
Comment 1 nsynet 2015-06-18 00:00:19 UTC
Created attachment 93220 [details]
the pdf file that can't read
Comment 2 Albert Astals Cid 2015-07-01 21:13:19 UTC
This is a bug in poppler the library we use to render pdf files, please open a bug upstream at  https://bugs.freedesktop.org/