[poppler] CID Fonts and fontconfig
Albert Astals Cid
aacid at kde.org
Wed Jul 6 13:48:28 PDT 2005
Well, here i am trying to get the fontconfig patch rewritten yet again.
I'm trying to "ignore" the
displayFontT1 Times-Roman /usr/share/fonts/default/Type1/n021003l.pfb
lines from xpdfrc as commented in the other mail, that is "easy" for normal
fonts, but with CID fonts my xpdfrc has some lines like
displayCIDFontTT Adobe-CNS1 /usr/share/fonts/ttf/chinese/fireflysung.ttf
where Adobe-CNS1 is not the name of the font but the collection of the font.
Then in the code, when requesting a cid font, the poppler/xpdf code looks for
a font named foo and if not finds it looks for a font that represents the
same collection as the requested font.
So what to do here, just ask fontconfig for the font name and ignore
completely the collection? This is the only way i can think, because when you
ask fontconfig for a font you always get a result, so you can not ask back
again because you can not be sure if it "failed", and also because i think
you can not query fontconfig about the "collection".
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
More information about the poppler