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

Simone Rondelli updated FOP-2638:
---------------------------------
    Description: 
In {{GlyphMapping.processWordMapping}} the script of the text is retrieved 
using {{String script = text.getScript()}}.

If the script returned is not listed in the Font then  then gsub/gpos features 
will be ignored even if applicable.

h5. Example:

The font [EmojiOne|https://github.com/eosrei/emojione-color-font] is a font for 
Emoji and contains a Ligatures table for _latn_ script. Thsi is what happen 
when FOText.getScript is called:

* ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Only emoji) -> script =  'zyyy'
* test๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Latin + Emoji) -> script = 'auto'
* ๅ…ˆ็งฆๅ…ฉๆผข๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Chinese + Emoji) -> script = 'auto'

In all these cases ApacheFOP is not able to apply the ligature table.

- Acceptance Criteria 

Ensure ApacheFOP reads the gsub/gpos table even if the script recognized for 
the text differs from the one defined in the font.

  was:
In {{GlyphMapping.processWordMapping}} the script of the text is retrieved 
using {{String script = text.getScript()}}.

If the script returned is not listed in the Font then  then gsub/gpos features 
will be ignored even if applicable.

h5. Example:

The font [EmojiOne|https://github.com/eosrei/emojione-color-font] is a font for 
Emoji and contains a Ligatures table for _latn_ script. Thsi is what happen 
when FOText.getScript is called:

* ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Only emoji) -> script =  'zyyy'
* test๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Latin + Emoji) -> script = 'auto'
* ๅ…ˆ็งฆๅ…ฉๆผข๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Chinese + Emoji) -> script = 'auto'

In all these cases ApacheFOP is not able to apply the ligature table.

.h5 Acceptance Criteria 

Ensure ApacheFOP reads the gsub/gpos table even if the script recognized for 
the text differs from the one defined in the font.


> FOText.getScript() may prevent gsub/gpos application
> ----------------------------------------------------
>
>                 Key: FOP-2638
>                 URL: https://issues.apache.org/jira/browse/FOP-2638
>             Project: FOP
>          Issue Type: Bug
>          Components: fo/block, layout/unqualified
>    Affects Versions: trunk
>         Environment: Operating System: All
> Platform: All
>            Reporter: Simone Rondelli
>
> In {{GlyphMapping.processWordMapping}} the script of the text is retrieved 
> using {{String script = text.getScript()}}.
> If the script returned is not listed in the Font then  then gsub/gpos 
> features will be ignored even if applicable.
> h5. Example:
> The font [EmojiOne|https://github.com/eosrei/emojione-color-font] is a font 
> for Emoji and contains a Ligatures table for _latn_ script. Thsi is what 
> happen when FOText.getScript is called:
> * ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Only emoji) -> script =  'zyyy'
> * test๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Latin + Emoji) -> script = 'auto'
> * ๅ…ˆ็งฆๅ…ฉๆผข๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ  (Chinese + Emoji) -> script = 'auto'
> In all these cases ApacheFOP is not able to apply the ligature table.
> - Acceptance Criteria 
> Ensure ApacheFOP reads the gsub/gpos table even if the script recognized for 
> the text differs from the one defined in the font.



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

Reply via email to