Bug 49872 - Don't substitute font names [patch included]
Summary: Don't substitute font names [patch included]
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: pdftohtml (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 08:27 UTC by Luis Parravicini
Modified: 2012-05-28 14:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to output font full name (1.97 KB, application/octet-stream)
2012-05-13 08:27 UTC, Luis Parravicini
Details

Description Luis Parravicini 2012-05-13 08:27:36 UTC
Created attachment 61558 [details]
Patch to output font full name

When generating html/xml from a pdf, the font name is substituted using the 'font' array in utils/HtmlFonts.cc and using 'Times' as default if the font is not found on that array.

As I need the font name as is in the pdf, I've written a patch to support that. You might find it useful too (or not!).

The patch provided adds a new command line option to pdftohtml, "-fontfullname", which outputs the font name without any substitutions. This is done for both html and xml. I don't know how if this makes sense in the case of html, but it would be trivial to change that.

With this patch, issue 34057 can be resolved.
Comment 1 Luis Parravicini 2012-05-13 08:42:59 UTC
The patch is against 0.20.0
Comment 2 Albert Astals Cid 2012-05-28 14:45:01 UTC
Commited, will be in poppler 0.22


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.