-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Are PostScript Type1 seem like CID Keyed fonts supported by PDF? #497
Comments
For what it's worth I agree with ceztko's assessment - these fonts cannot be used with PDF, for the reasons he listed (it's not a Simple Type1, and it's not a valid subtype for Type0). I'm prety confident we've never seen a PDF that's tried to use one, and that includes all of GovDocs1 and corpora.tika.apache.org. It's perhaps not clear when skimming just p328 that these fonts definitely cannot be used, but it's going to become very clear the moment anyone tried to implement code to do so for the reasons already outlined. So I don't personally think a spec clarification is required here, although like all clarifications it's not going to do any harm. |
Yes, a clarification in the spec is (probably) not formally needed. But there's also an ambiguity where Adobe Technical Note #5014, "Adobe CMap and CIDFont Files Specification" call these postscript CID keyed fonts CIDFonts, and CIDFonts as intended by the PDF specification (which are basically the descendants of composite Type 0 fonts). So, while the specification formally prohibits them, we don't know for sure if Adobe products may still implicitly support them in PDF, because of sharing of some common code for font handling. After all, they look like they can be safely converted to CFF with CID indexing information. I have actually tried with afdko |
Discussion opened at pdf-issues if they should be supported or not by PDF. So far found only CJK fonts like those, so we set them unsupported for now. pdf-association/pdf-issues#497
For my own curiosity, I fabricated some test files embedding these Type 1 CIDFont(s) and...Adobe Acrobat Viewer is able to view them! This doesn't prove anything other than the fact Adobe products performs some normalization steps to font programs and that they include routines to open such format. It's also weird that I had to use them in a Here it follows the fabricated test PDFs. They all show a different font, even if it is named WadaMin-Regular-NoEmbed.pdf As reported earlier I found such fonts here. |
Adobe Technical Note #5014 "Adobe CMap and CIDFont Files Specification" describes a special postscript Type1 seem like font format that is CID keyed (examples of such fonts can be found at this link). The specified document is often mentioned in the PDF specification speaking about CMap format, but at page 328 of ISO 32000-2:2020 it's stated:
So said, it's unclear to me if this font is supported by the PDF specification at all. In fact such format cannot be used in a
/Type1
PDF font (because it's neither a regular Type1 Postscript to be embedded in/FontFile
nor a CFF converted Type1 font to be embedded in/FontFile3
with subtype/Type1C
). It also cannot be used in a PDF/Type0
composite font because supported formats for descendant fonts are either FreeType/OpenType fonts with aglyf
table or CFF based fonts (see Table 124).At page 328 it's mentioned:
I wonder if the specification could be more clear explicitly stating if these fonts are supported or not. As an additional information, these fonts can be opened by FreeType and
FT_Get_Font_Format
returnsCID Type 1
.The text was updated successfully, but these errors were encountered: