[jira] [Created] (FOP-2559) Kerning doesn't work for OTF/CFF font

2016-01-03 Thread chunlinyao (JIRA)
chunlinyao created FOP-2559:
---

 Summary: Kerning doesn't work for OTF/CFF font
 Key: FOP-2559
 URL: https://issues.apache.org/jira/browse/FOP-2559
 Project: FOP
  Issue Type: Bug
  Components: font/opentype
Affects Versions: trunk
Reporter: chunlinyao
Priority: Minor


According to the spec. "OpenType™ fonts containing CFF outlines are not 
supported by the 'kern' table and must use the 'GPOS' OpenType Layout table."

But OFFontLoader hasn't pass the useAdvanced flag to OTFFile, so GPOS table not 
read.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2557) [PATCH] Adobe Reader report corrupt embedded font

2016-01-03 Thread chunlinyao (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

chunlinyao updated FOP-2557:

Attachment: patch20160104.txt

An updated patch, Which cache the hint mask length after call 
preScanForSubsetIndexSize. Will speed up the readCharStringData method.
Tested with testbigset.xml shown createCharStringDataCID method got 20%  faster.

> [PATCH] Adobe Reader report corrupt embedded font 
> --
>
> Key: FOP-2557
> URL: https://issues.apache.org/jira/browse/FOP-2557
> Project: FOP
>  Issue Type: Bug
>  Components: fo/block
>Affects Versions: trunk
> Environment: Mac OSX 10.10, JDK 1.8
>Reporter: chunlinyao
> Attachments: fop.xconf, patch.txt, patch20160104.txt, 
> patch_20160102.txt, test_fail.xml, test_fail2.pdf, test_fail2.xml, 
> test_good.pdf, test_good.xml, testbigset.pdf, testbigset.xml, 
> testbigset_full.pdf
>
>
> When use NotoSansCJKSc regular font, If I don't include any number the 
> embedded subset is corrupt.
> How to repeat
> 1. Get FOP from trunk@1720811
> 2. Get Font from 
> https://github.com/googlei18n/noto-cjk/blob/40d9f5b179a59a06b98373c76bdc3e2119e4e6b2/NotoSansCJKsc-Regular.otf
> 3. Use my config file and transform my fo files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (FOP-2559) Kerning doesn't work for OTF/CFF font

2016-01-03 Thread chunlinyao (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

chunlinyao updated FOP-2559:

Attachment: patch.txt

I Enabled advanced features for OTF/CFF by the attached patch. The kerning 
using GPOS table just works fine.

Is there a special reason to disable advanced features for OTF/CFF font.

> Kerning doesn't work for OTF/CFF font
> -
>
> Key: FOP-2559
> URL: https://issues.apache.org/jira/browse/FOP-2559
> Project: FOP
>  Issue Type: Bug
>  Components: font/opentype
>Affects Versions: trunk
>Reporter: chunlinyao
>Priority: Minor
> Attachments: patch.txt
>
>
> According to the spec. "OpenType™ fonts containing CFF outlines are not 
> supported by the 'kern' table and must use the 'GPOS' OpenType Layout table."
> But OFFontLoader hasn't pass the useAdvanced flag to OTFFile, so GPOS table 
> not read.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2559) Kerning doesn't work for OTF/CFF font

2016-01-03 Thread Glenn Adams (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15080671#comment-15080671
 ] 

Glenn Adams commented on FOP-2559:
--

Only if complex script functions are disabled (as a group); otherwise, advanced 
features should be enabled.

> Kerning doesn't work for OTF/CFF font
> -
>
> Key: FOP-2559
> URL: https://issues.apache.org/jira/browse/FOP-2559
> Project: FOP
>  Issue Type: Bug
>  Components: font/opentype
>Affects Versions: trunk
>Reporter: chunlinyao
>Priority: Minor
> Attachments: patch.txt
>
>
> According to the spec. "OpenType™ fonts containing CFF outlines are not 
> supported by the 'kern' table and must use the 'GPOS' OpenType Layout table."
> But OFFontLoader hasn't pass the useAdvanced flag to OTFFile, so GPOS table 
> not read.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2252) [PATCH] OpenType CFF support for FOP

2016-01-03 Thread chunlinyao (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15080423#comment-15080423
 ] 

chunlinyao commented on FOP-2252:
-

I don't known why it does not pass the useAdvanced flag to OTFFile at  L108 of  
OFFontLoader 


I enabled it and try to generage some pdf, It seems gpos for OpenType CFF font 
works fine. because I can see the kerning works. CFF using gpos table instead 
of kern table for kerning. Is there any reason to disable the useAdvanced flag?

> [PATCH] OpenType CFF support for FOP
> 
>
> Key: FOP-2252
> URL: https://issues.apache.org/jira/browse/FOP-2252
> Project: FOP
>  Issue Type: New Feature
>  Components: font/unqualified
>Affects Versions: trunk
>Reporter: Robert Meyer
>Assignee: Robert Meyer
> Fix For: trunk
>
> Attachments: AlexBrushRegular.otf, SourceSansProBold.otf, 
> fontbox-1.8.0-SNAPSHOT.jar, fop.xconf, output.pdf, patch-240713.diff, 
> test.fo, test.pdf
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Closed] (FOP-2252) [PATCH] OpenType CFF support for FOP

2016-01-03 Thread simon steiner (JIRA)

 [ 
https://issues.apache.org/jira/browse/FOP-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

simon steiner closed FOP-2252.
--

> [PATCH] OpenType CFF support for FOP
> 
>
> Key: FOP-2252
> URL: https://issues.apache.org/jira/browse/FOP-2252
> Project: FOP
>  Issue Type: New Feature
>  Components: font/unqualified
>Affects Versions: trunk
>Reporter: Robert Meyer
>Assignee: Robert Meyer
> Fix For: trunk
>
> Attachments: AlexBrushRegular.otf, SourceSansProBold.otf, 
> fontbox-1.8.0-SNAPSHOT.jar, fop.xconf, output.pdf, patch-240713.diff, 
> test.fo, test.pdf
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (FOP-2252) [PATCH] OpenType CFF support for FOP

2016-01-03 Thread simon steiner (JIRA)

[ 
https://issues.apache.org/jira/browse/FOP-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15080443#comment-15080443
 ] 

simon steiner commented on FOP-2252:


Create a new ticket about your issue please.

> [PATCH] OpenType CFF support for FOP
> 
>
> Key: FOP-2252
> URL: https://issues.apache.org/jira/browse/FOP-2252
> Project: FOP
>  Issue Type: New Feature
>  Components: font/unqualified
>Affects Versions: trunk
>Reporter: Robert Meyer
>Assignee: Robert Meyer
> Fix For: trunk
>
> Attachments: AlexBrushRegular.otf, SourceSansProBold.otf, 
> fontbox-1.8.0-SNAPSHOT.jar, fop.xconf, output.pdf, patch-240713.diff, 
> test.fo, test.pdf
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)