[Poppler-bugs] [Bug 5168] Text rendering problem

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 31 09:18:52 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=5168

--- Comment #10 from suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp> 2010-08-31 09:18:52 PDT ---
Oops, it is not so simple issue. fontconfig does not provide
(nor search with the consideration for) serif/sans-serif info.
I had to pick such info from the font by opening the font
via FreeType, load OS/2 table, check Panose values. But even
if I can reflect serif/sans-serif flag in the font selection,
it does not mean the best matching font would be chosen.

I attached my patch to use Panose values in the font selection,
and its result. You can find that the regular roman text is
drawn by fixed-pitched Latin glyph in CJK fonts. It's very
ugly. Worse than original result. More metric matching evaluation
is needed.

The question would be "why xpdf show good result? xpdf does
more complicated work for better font substitution?"
The answer is that xpdf's font substitution is more simple.
It does not use fontconfig. It seems that xpdf prefers PS
Type1, and find conventional typefaces (because the variety
of PS Type1 fonts on free unix system is not so wide).

I have to reconsider how to find better matching fonts.

-- 
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