Bug 52499 - [PATCH] non embeddable TTF fonts -- throw exception if trying to embed
Summary: [PATCH] non embeddable TTF fonts -- throw exception if trying to embed
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fonts (show other bugs)
Version: all
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 10:56 UTC by Luis Bernardo
Modified: 2012-03-28 08:49 UTC (History)
0 users



Attachments
the patch (826 bytes, patch)
2012-01-23 10:58 UTC, Luis Bernardo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Bernardo 2012-01-23 10:56:09 UTC
If a TTF font has the the non embeddable flag set and the user tries nevertheless to embed it in a document, FOP will respect the flag and will not embed the font; however it still generates the resulting document (PDF/PS) leading to unpredictable results (missing glyphs and errors when opening with Adobe Reader). With this patch FOP will throw an exception if a non embeddable font is being embedded.
Comment 1 Luis Bernardo 2012-01-23 10:58:22 UTC
Created attachment 28189 [details]
the patch

Note: to see the issue one needs a TTF that is non embeddable (usually due to licensing restrictions).
Comment 2 Mehdi Houshmand 2012-01-23 12:08:38 UTC
Patch applied to r1234761.

Thanks for this patch.