You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Jan Tosovsky <j....@email.cz> on 2014/03/25 20:52:47 UTC
RE: Invalid Characters codes when reading a specific font
On 2014-02-10 Jan Tosovsky wrote:
>
> when opening DroidSansFallback TTF font [1] via the following code
> using just FontBox dependency, the Invalid Characters codes error
> appears:
>
> TrueTypeFont font = new TTFParser().parseTTF(new
> File("DroidSansFallback.ttf"));
>
> java.io.IOException: Invalid Characters codes
> at
> org.apache.fontbox.ttf.CMAPEncodingEntry.processSubtype12(CMAPEncodingE
> ntry.
> java:221)
> at
> org.apache.fontbox.ttf.CMAPEncodingEntry.initSubtable(CMAPEncodingEntry
> .java
> :100)
> ...
>
Any idea how to work around this issue?
Thanks, Jan