[Poppler-bugs] [Bug 75178] font substitution fails if font name contains a dash

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 20 12:19:32 PST 2014


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

--- Comment #12 from Behdad Esfahbod <freedesktop at behdad.org> ---
(In reply to comment #10)
> Well, this is a poppler issue. see:
> http://cgit.freedesktop.org/poppler/poppler/tree/poppler/GlobalParams.
> cc#n1021
> 
> they are replacing a dash in a font name and fontconfig takes care of the
> dash and the space in the name differently.
> This change has been made based on older version of fontconfig:
> 
> commit 82638babe89e402c0348619ec3205059b977c7e9
> Author: Albert Astals Cid <aacid at kde.org>
> Date:   Thu Jul 28 17:34:19 2005 +0000
> 
>     Fontconfig patch is here, rejoice
> 
> So I'm not surprised something went wrong. it may be the time to get rid of
> this hack. reassigning to poppler.

Wait.  I *think* Poppler is chopping a PS font name and passing to fontconfig. 
So, if the real font name has space, Poppler has to convert dash to space, but
if the real font name actually has dash, the conversion is bogus.  Back to a
known issue: we need matching by PS font name.  That, or make fontconfig ignore
dash in family name matching as it does for space.  Or, make poppler remove the
dash instead of replacing it with space.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20140220/175fd10d/attachment.html>


More information about the Poppler-bugs mailing list