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

Andreas L. Delmelle edited comment on FOP-2540 at 11/27/15 11:01 PM:
---------------------------------------------------------------------

Extended patch, containing the earlier mentioned potential improvement, i.e. 
basic refactoring to move logic related to the CMAP into a new class OFCMap.

EDIT - Note that this is just a start. Currently, the whole fonts package seems 
to be designed as if a CMAP is always a collection of segments. Dead giveaway 
is the fact that the class CMapSegment is actually in the main package, and 
referenced in several other classes as well. This does not necessarily seem to 
be true, however, as far as I can see... For example, there is the simple "Byte 
Encoding" subtable format, where the concept of "segments" strictly speaking 
does not apply. 
It seems as if the only supported format (= "Segment to Delta" subtable) was 
taken to be "the" one and only CMAP format...? :/ At first glance, it would 
take quite some more refactoring to get that adjusted/corrected across the 
entire package.


was (Author: adelmelle):
Extended patch, containing the earlier mentioned potential improvement, i.e. 
basic refactoring to move logic related to the CMAP into a new class OFCMap.

> Enhance TTF/OTF support beyond Windows
> --------------------------------------
>
>                 Key: FOP-2540
>                 URL: https://issues.apache.org/jira/browse/FOP-2540
>             Project: FOP
>          Issue Type: Improvement
>          Components: font/opentype
>    Affects Versions: 2.0
>         Environment: OS X
>            Reporter: Andreas L. Delmelle
>            Assignee: Andreas L. Delmelle
>            Priority: Minor
>         Attachments: FOP-2540.patch, test_osx_fonts_after_1.log, 
> test_osx_fonts_before.log
>
>
> Currently, cmap tables in TTF/OTF are only supported for Platform ID = 3, 
> i.e. MS Windows. There is no support for Platform ID = 0, i.e. basic Unicode, 
> or 1, i.e. Macintosh.
> This makes quite some system fonts bundled with OS X supposedly unusable. The 
> solution is fairly trivial (patch proposal will be attached shortly), 
> provided the cmap table format in the font is already supported. FOP 
> currently only has support for cmap format 4 (segment to delta mapping), but 
> this seems to suffice for most of the Unicode cmaps as well.
> See also FOP-2539, which triggered me to investigate this closer.



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

Reply via email to