[ 
https://issues.apache.org/jira/browse/PDFBOX-4093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16351440#comment-16351440
 ] 

Tilman Hausherr commented on PDFBOX-4093:
-----------------------------------------

Here's what I found out so far...
 - it's a type 0 otf font with CFF

 - The first glyph should appear as "T". Its code is 175, its GID (according to 
both PDFDebugger and DTL OTM light) is 17.

 - When PDFBox gets the path (in PDCIDFontType0.java), it uses the CID 175. The 
GID 175 is the "ü" that appears. So a CID to GID transformation is missing.

The PDF specification has this
{quote}There are two cases, depending on the contents of the font program:
 • The "CFF" font program has a Top DICT that uses CIDFont operators: The CIDs 
shall be used to determine the GID value for the glyph procedure using the 
charset table in the CFF program. The GID value shall then be used to look up 
the glyph procedure using the CharStrings INDEX table.

 

NOTE Although in many fonts the CID value and GID value are the same, the CID 
and GID values can differ.
 • The "CFF" font program has a Top DICT that does not use CIDFont operators: 
The CIDs shall be used directly as GID values, and the glyph procedure shall be 
retrieved using the CharStrings INDEX.
{quote}
 

So I guess we have the first case, but I don't know how to identify whether 
"Top DICT that uses CIDFont operators".

> illegible characters in rendered image 
> ---------------------------------------
>
>                 Key: PDFBOX-4093
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4093
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.8
>            Reporter: sunnyawake
>            Priority: Major
>         Attachments: PDF Clown - Complex Typesetting sample.pdf, 
> fontfile3_opentype.pdf.png
>
>
> illegible characters in rendered image 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to