Skip to content
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

Clarification about font program - 9.7.4.2 Glyph selection in CIDFonts #476

Open
datalogics-josepha opened this issue Sep 26, 2024 · 1 comment
Labels
bug Something isn't correct

Comments

@datalogics-josepha
Copy link

datalogics-josepha commented Sep 26, 2024

9.7.4.2 Glyph selection in CIDFonts

If the TrueType font program is not embedded but is referenced by name, and the Type 2 CIDFont dictionary contains a CIDToGIDMap entry, the CIDToGIDMap entry shall be ignored, since it is not meaningful to refer to glyph indices in an external font program. In this case, CIDs shall not participate in glyph selection, and only predefined CMaps may be used with this CIDFont (see 9.7.5, "CMaps"). The PDF processor shall select glyphs by translating characters from the encoding specified by the predefined CMap to one of the encodings in the TrueType font’s "cmap" table. The means by which this is accomplished are implementation-dependent.

As I begin reading this paragraph I realize we're talking about unembedded fonts, so there's no TrueType font program to speak of. Then by the end simply saying

...in the TrueType font's "cmap" table

makes me think I missed something.....but after discussing with @datalogics-pgallot I realize we're most likely, simply referring to a font looked up on the OS. I think a simple clarification is all that's needed here.

@datalogics-josepha datalogics-josepha added the bug Something isn't correct label Sep 26, 2024
@petervwyatt petervwyatt added this to the Font and text related milestone Sep 26, 2024
@petervwyatt
Copy link
Member

I think what you're implying is that more "external" clarifications are needed. Like this (added words are bold)?

If the TrueType font program is not embedded but is referenced by name, and the Type 2 CIDFont dictionary contains a CIDToGIDMap entry, the CIDToGIDMap entry shall be ignored, since it is not meaningful to refer to glyph indices in an external font program. In this case, CIDs shall not participate in glyph selection, and only predefined CMaps may be used with this CIDFont (see 9.7.5, "CMaps"). The PDF processor shall select glyphs by translating characters from the encoding specified by the predefined CMap to one of the encodings in the external TrueType font’s "cmap" table. The means by which this is accomplished are implementation-dependent.

@pdf-association pdf-association deleted a comment Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't correct
Projects
None yet
Development

No branches or pull requests

2 participants