[
https://issues.apache.org/jira/browse/PDFBOX-2140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031703#comment-14031703
]
John Hewson commented on PDFBOX-2140:
-------------------------------------
The missing glyph is from the Symbol font (one of the standard 14 fonts), which
in this PDF has a custom Encoding which specifies a Differences array but no
BaseEncoding. The PDF spec has the following to say on the missing BaseEncoding
entry:
{quote}
If this entry is absent, the Differences entry shall describe differences
from an implicit base encoding. For a font program that is embedded in
the PDF file, the implicit base encoding shall be the font program’s built-in
encoding, as described in 9.6.6, "Character Encoding" and further
elaborated in the sub-clauses on specific font types. Otherwise, for a
nonsymbolic font, it shall be StandardEncoding, and for a symbolic font,
it shall be the font’s built-in encoding.
{quote}
Looking at the DictionaryEncoding constructor, the built-in encoding is not
currently being used:
{code}
// The default base encoding is standardEncoding
Encoding baseEncoding = StandardEncoding.INSTANCE;
COSName baseEncodingName =
(COSName) encoding.getDictionaryObject(COSName.BASE_ENCODING);
if (baseEncodingName != null) {
baseEncoding =
EncodingManager.INSTANCE.getEncoding(baseEncodingName);
}
{code}
> non embedded Type1 symbol glyph not rendered
> --------------------------------------------
>
> Key: PDFBOX-2140
> URL: https://issues.apache.org/jira/browse/PDFBOX-2140
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Labels: type1font
> Attachments: PDFBOX-2133-1.png
>
>
> The first page of the file from PDFBOX-2133 is missing its "TM".
--
This message was sent by Atlassian JIRA
(v6.2#6252)