freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug report: Allow CFF based OT fonts with missing map table


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

A screenshot of a computer

Description automatically generated

 

Thank you for your time and consideration.

 

Honnesh Ramachandra

Attachment: cffobjs.c
Description: cffobjs.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]