[Poppler-bugs] [Bug 49037] Noncompliance with Standard-14 fonts requirement in PDF specs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 26 05:47:17 PDT 2012


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

--- Comment #28 from Adrian Johnson <ajohnson at redneon.com> 2012-04-26 05:47:17 PDT ---
(In reply to comment #26)
> Excuse me, do you think "lookup GS_LIB in the system registry is bad idea",
> OR "lookup the gsfont directory by pathname juggling is bad idea"? Both
> are bad ideas?

Both are bad ideas. We should not be depending on gs to be installed to find
our fonts. The gs fonts are less than 5MB. The space is not an issue. And if
anyone doesn't want the fonts installed twice they should install them to the
windows font directory. The windows font directory is the only place that fonts
should be shared between applications.

What happens when the user uninstalls gs leaving poppler without the standard
14 fonts?

> Yes, yes, yes. I'm doing some experiments.
> https://www.codeblog.org/blog/mpsuzuki/20120416.html
> Although getting the font file images via GDI is not so simple

GetFontData will provide access to ttf/otf/type1 font images. It is used by
cairo, libre office and many other applications.

> (CreateFont() does not bring us to there, more hooks are needed),
> it would be better than the juggling of pathname & familynames.

What else is required? The other option is to enumerate the fonts and do our
own font matching like pango and firefox (the two examples I am familiar with).
But I can't see that this is necessary for poppler.

> However, the stabilization of the font detection by using GDI
> features would spend more time.

Yes, doing it the right will take it bit more work but in the mean time we
should not add hacks like searching for gs. If we do that we are stuck having
to support that feature. What we can easily do now is add support for searching
poppler_data_dir/fonts first.

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