|
From: | Honnesh Ramachandra |
Subject: | Bug report: Allow CFF based OT fonts with missing map table |
Date: | Fri, 24 May 2024 16:28:12 +0000 |
Hello, This issue relates to PDF specification and its usage of CFF based embedded fonts for it Type0 fonts. For Type0 fonts containing CID-keyed descendant CFF-based fonts, the glyph index is the CID present in the content stream. As a result,
there is no requirement for a ‘cmap’ table to be present in the font since the glyph indices are derived directly from the CIDs. FreeType 2.13.2 throws an error when it doesn’t find a ‘cmap’ table for such an Open Type font containing CFF outlines. I suggest
relaxing this requirement for a ‘cmap’ table for such fonts. I have attached my suggested fix with this email. For legal reasons, I have not attached the embedded font that encounters this problem. Here is a diff to highlight the proposed change Thank you for your time and consideration. Honnesh Ramachandra |
cffobjs.c
Description: cffobjs.c
[Prev in Thread] | Current Thread | [Next in Thread] |