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

Tilman Hausherr commented on PDFBOX-4344:
-----------------------------------------

This is not supported by PDFBox. There is PDFBOX-4189, but work has stopped. 
Last problem was an incorrect ToUnicode stream when font subsets were used. I 
may try to work on this when I have a lot of time, maybe around Christmas, or 
maybe in my next summer vacation.

Btw type 4 GSUB lookup table IS supported, so maybe you're not using the latest 
trunk version. But types 3 (alternate), 6 (chaining context) and 7 (extension 
substitution) are not supported.
https://docs.microsoft.com/en-us/typography/opentype/spec/gsub

The next problem is that the current code has been tested only for Bengali. Any 
additional language will need work by people who know the language.

> Khmer language not support
> --------------------------
>
>                 Key: PDFBOX-4344
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4344
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: Archimedes Trajano
>            Priority: Major
>
> I am trying to load up
> {color:#807d6e}NotoSansKhmer-Regular.ttf{color}
> {color:#807d6e}I noted the following in the logs.  Looking at the trunk you 
> had Type 4 already but not 3 and 6.{color}
> {color:#807d6e}19:05:37.334 [main] DEBUG 
> org.apache.fontbox.ttf.GlyphSubstitutionTable - Type 3 GSUB lookup table is 
> not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 4 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 4 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 4 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 4 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 4 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 6 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 7 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 7 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 7 GSUB lookup table is not supported and will be ignored
> 19:05:37.334 [main] DEBUG org.apache.fontbox.ttf.GlyphSubstitutionTable - 
> Type 4 GSUB lookup table is not supported and will be ignored{color}
>  



--
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