[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-22 Thread Andreas L. Delmelle (JIRA)

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

Andreas L. Delmelle commented on FOP-2539:
--

FYI - Repeat of request to attach a minimal FO file demonstrating the issue. If 
no such attachment is added by next Friday, I will close this one, assuming 
that it was indeed an encoding issue.


> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
> Attachments: symbol_test.fo, symbol_test_2.fo
>
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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


[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Andreas L. Delmelle (JIRA)

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

Andreas L. Delmelle commented on FOP-2539:
--

Please attach a minimal FO file that reproduces the issue on your end for 
further analysis. The most usual suspect, based on the description, would be an 
encoding issue. That is: the actual encoding of the symbol characters in the 
XML FO file does not correspond to the one  that is specified (= UTF-8, if not 
explicitly set).
We cannot see whether that is the case here if you just copy-paste a fragment 
into the issue Description.

> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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


[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Andreas L. Delmelle (JIRA)

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

Andreas L. Delmelle commented on FOP-2539:
--

Having a go at adding support for the Macintosh/Roman table --which is fairly 
straightforward, since it is a simple 1-1 mapping-- I noticed that the 
situation there is very similar to the Windows/Symbol one, only there the 
codepoints for regular latin alphabet are _directly_ mapped to the symbol 
glyphs, i.e. without going via the 'private use area'. So, regular latin 
characters are also not supported in the Apple OTF implementation of the Symbol 
font. There are no glyphs "A", "b", etc. in that font.

Since the code currently processes the Windows/Symbol mapping _only_ if there 
is no Windows/Unicode mapping available, that bit of code really does not do 
anything if the TTF contains both. Even if we were to process both mappings, 
then the one that happens to be processed first will take precedence, i.e. the 
code currently allows mapping _either_ codepoint U+03B1 _or_ codepoint U+0061 
to glyph 'α', but not both, as is the case in both Windows and OS X when you 
type text in a text editor or word processor.

To get back on topic for this particular issue: I still very much suspect this 
to be an encoding issue in the source file, maybe as the result of either 
copy-pasting text or reading from a stream with the default platform encoding. 
Notice that the user mentions both Windows and Unix as affected; if the default 
encoding on both platforms does not match, this is typically the result -- rule 
of thumb: *always* specify an explicit encoding when setting up 
Input/OutputStreamReaders. One could argue that Java makes it far too easy for 
novices to make mistakes here, leading to issues that can be a real pain to 
trace to their origin... ;)

> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
> Attachments: symbol_test.fo, symbol_test_2.fo
>
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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


[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Matthias Reischenbacher (JIRA)

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

Matthias Reischenbacher commented on FOP-2539:
--

I don't think that the user refers to the Base14 Symbol font, no re-mapping is 
required there. This is just a special "feature" of the Windows Symbol font 
which requires this non-standard behavior, when using characters in a Unicode 
range which actually aren't contained in the font.

> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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


[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Matthias Reischenbacher (JIRA)

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

Matthias Reischenbacher commented on FOP-2539:
--

The release tag for version 1.0 has revision 1141997, 1.1 has 1398854. So 
Wingdings/Symbol font support was present in 1.0 release, but not anymore in 
1.1.

> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
> Attachments: symbol_test.fo, symbol_test_2.fo
>
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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


[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Andreas L. Delmelle (JIRA)

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

Andreas L. Delmelle commented on FOP-2539:
--

BTW - Noticed the user specified FOP 1.0 as the version... Were the changes 
referred to in the earlier comment applied before or after that release?

> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
> Attachments: symbol_test.fo, symbol_test_2.fo
>
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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


[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Matthias Reischenbacher (JIRA)

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

Matthias Reischenbacher commented on FOP-2539:
--

I had a quick look at this a while ago. Support for Symbol (or other 
Symbol-Windows fonts like Wingdings etc.) was originally added by Jeremias in

http://svn.apache.org/viewvc?view=revision=891181

Glenn then remove it in

http://svn.apache.org/viewvc?view=revision=1328579

See also:
https://bz.apache.org/bugzilla/show_bug.cgi?id=50492#c7

The code fragment, Glenn had commented, was then re-introduced by:
http://svn.apache.org/viewvc?view=revision=1514076 (see OpenFont.java)

see also:
https://issues.apache.org/jira/browse/FOP-2252

But the code fragment is in the wrong place, at least for making it work again 
for Symbol/Wingdings.

If I remember correctly the characters of the Symbol/Wingdings font can be 
accessed via the code points in the private use area. So instead of using "a" 
you need to use 

[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Andreas L. Delmelle (JIRA)

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

Andreas L. Delmelle commented on FOP-2539:
--

Was trying to check what the behavior was when the TTF was used, but 
unfortunately, the Symbol.ttf file that comes with OS X cannot be processed:

WARNING: Unable to load font file: file:/System/Library/Fonts/Symbol.ttf. 
Reason: java.io.IOException: The font does not have a Unicode cmap table: 
file:/System/Library/Fonts/Symbol.ttf

Happens with quite a lot of TTFs and TTCs on OS X. Not an expert, so not sure 
what is wrong about those files that makes FOP's font library not able to 
process it. I mean: I obviously get that it cannot find a Unicode cmap table, 
but would have to familiarize myself with the format to know whether that is 
really an issue with the file, or whether it just points to a deficiency in 
FOP's font lib... ?

> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
> Attachments: symbol_test.fo, symbol_test_2.fo
>
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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


[jira] [Commented] (FOP-2539) Apache PDF issue with Symbol.ttf

2015-11-17 Thread Andreas L. Delmelle (JIRA)

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

Andreas L. Delmelle commented on FOP-2539:
--

Interesting... I was thinking along the lines that, provided the font supports 
it, there are 'standard' Unicode codepoints for the specific characters 
mentioned here, i.e.

GREEK SMALL LETTER ALPHA - U+03B1 (α)
GREEK SMALL LETTER BETA - U+03B2 (β)
GREEK SMALL LETTER GAMMA - U+03B3 (γ)
etc.

Must admit that I have not verified if those codepoints are supported by the 
Base14 Symbol font, though. If so, no need for mapping to any 'private use 
area' codepoints. Just make sure those symbols are encoded properly...?

> Apache PDF issue with Symbol.ttf
> 
>
> Key: FOP-2539
> URL: https://issues.apache.org/jira/browse/FOP-2539
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windox, unix
>Reporter: Sushmitha
>
> I have Symbol.ttf, configured the same in config file. Symbol font is not 
> applying properly.
> Please find the below details
> FOP version - 1.0
> OS - Unix, Windows
> XSL-FO desc:
> 
> Abcdefgh α β γ
> 
> Result - the charcters are not displaying properly and they are not human 
> readable format
> fop.xconf:-
> 
> 
> 
> 
> 
> 
> 
> 
> 



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