[Poppler-bugs] [Bug 36474] New: CJK characters are not displayed
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 22 01:22:15 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=36474
Summary: CJK characters are not displayed
Product: poppler
Version: unspecified
Platform: Other
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: sho at bbr.jp
Created an attachment (id=45930)
View: https://bugs.freedesktop.org/attachment.cgi?id=45930
Review: https://bugs.freedesktop.org/review?bug=36474&attachment=45930
patch
On Ubuntu 11.4 beta japanese language envrionnment, poppler can't display
Japanese character in PDF files don't embed CID fonts in them.
I have found a problem in selecting fonts:
In this environment, fonconfig has the following setting.
<edit name="family" mode="prepend" binding="strong">
<string>DejaVu Sans</string> --- (1)
<string>Takao P Gothic</string> --- (2)
......
(1) is a font for Latin-1 not for Japanese.
(2) is a font for Japanese.
So poppler select the font (1), and Japanese Characters are not dispplayed.
But, this is NOT a bug of setting!!!
Application using fontconfig is expected to fallback, when it doesn't found a
glyph for a character. That is, it is expected to do the following;
When a character is Latin-1, it uses the font (1).
When a character is not Latin-1, it uses the font (2).
Intent of this setting is that application uses a font pair ((1)+(2)) as 1
font.
This is strange for me, but not a few users love this.
Setting like this appears in Chinese environment.
But poppler doesn't fallback!!!
I think that it needs many changes for poppler to fallback.
I have a idea:When Adobe-Japan1 font is required, don't select a font not
supporting language "ja", and poppler displays all characters at least.
I attached a patch for this.
This patch also
extracts codes selecting lang tag and put them into a function so that we
can use it from other function.
adds codes to handle "Medium" modifier that often used in Japanese font.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list