Comment 16 for bug 179589

Revision history for this message
bbyak (buliabyak) wrote : Re: [Bug 179589] Re: PDF Import: spaces removed from font names

On Sat, Feb 14, 2009 at 7:32 AM, KoRi <email address hidden> wrote:
> Was not sure if it we could live with these inaccuracies for now?

Yes, certainly! So long as it matches AvantGarde at all, it is already
an improvement. Requiring it to always guess that "Bk" means "Book"
would be too much I think :)

On the other hand, looking at various fonts in FontForge, I can see
that both regular name (with spaces) and the PS name are recorded in
the font file itself. So, the Right Way to solve this problem would be
to find a way to access this information and to compare the font names
from PDF with this PS name of the font, then if a match is found, put
into SVG the normal-with-spaces name from the same font. I wonder if
there's some API for accessing that name - in fontconfig, pango? Can
you check this idea out if it makes sense to you?

--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org