[Poppler-bugs] [Bug 49037] Noncompliance with Standard-14 fonts requirement in PDF specs
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Apr 23 01:58:31 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=49037
--- Comment #5 from thomasf <Thomas.Freitag at alfa.de> 2012-04-23 01:58:31 PDT ---
First of all, thanks that one more tries to support the windows font
substitution at all. Other than on unix platforms i.e. with fontconfig, on
Windows every program itself is responsible to find and / or install every font
which it needs. Because we have no Windows installer for poppler, we only have
the choice to find a suitable font, if it is not embedded in the PDF.
But to Your patch:
1. It will not work at all: Because the library first calls
GlobalParams::findFontFile and then GlobalParams::findSystemFontFile,
setupBaseFonts is first called with parameter NULL, so Your attempt fo find
ghostscript fonts will not succeed. At least You have to patch the call of
setupBaseFonts in GlobalParams::findFontFile, too.
2. I personally don't like the call of GetModuleFileName in
get_poppler_fontdir: it will returns the path of the executable file, and
because we have no installer, and i.e. call it under the Visual studio, You
need to install the fonts twice, one time under "Debug" and one time under
"Release". But at least You should not search for "bin" only (that's Unix
style), but You shoud remove "Debug" and "Release", too. And why Do You don't
use the define "POPPLER_DATADIR" and use a font directory under it?
3. Of course we could search the registry for a ghostscript installation, it's
quite easy, too, and look for the GS_LIB-key, it already has a pointer to the
ghostscript installed fonts. But unfortunately ghostscript removes its font
installer, so also here You have to download the ghostscript fonts manually and
have to put them in the correct directory.
4. On my system I have a true type font ZapfDingbats, installed by ScanSoft,
and I would like to use this one. Why does PFB fonts overrules TTF fonts?
Therefore I would like to agree to mpsuzuki: Why don't install all needed fonts
in the Windows font directory. The most program (at least MicroSoft, and even
if most people don't like it, it's a Windows system) install it there.
--
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