You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Andreas L. Delmelle (JIRA)" <ji...@apache.org> on 2015/11/17 20:50:11 UTC

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

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

Andreas L. Delmelle edited comment on FOP-2539 at 11/17/15 7:49 PM:
--------------------------------------------------------------------

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

EDIT - Just confirmed that those codepoints are properly supported by the Base14 Symbol font, i.e. no font embedding would be needed (?) That said, characters 'A', 'b' etc. are NOT supported by the Base14 Symbol font, so would need to be put in an fo:wrapper to set a different font. Maybe that would not be necessary with the TTF variant, not sure... 
What I think may be happening here, is that the characters are encoded not as UTF-8 and not referenced via entities, but the parser takes them to be such, if the user is either not specifying the encoding explicitly or is using a boiler plate '<?xml version="1.0" encoding="UTF-8"?>' 
That would lead to strange looking characters, since the bytes would be interpreted incorrectly. No way to tell without looking at the actual FO file in a hex editor...


was (Author: adelmelle):
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:
> <fo:block font-family="Symbol">
> Abcdefgh α β γ
> </fo:block>
> Result - the charcters are not displaying properly and they are not human readable format
> fop.xconf:-
> <renderers>
> <renderer mime="application/pdf">
> <fonts>
> <font metrics-url="Symbol.xml" embed-url="Symbol.ttf">
> <font-triplet name="Symbol" style="normal" weight="normal"/>
> </font>
> </fonts>
> </renderer>
> <renderers>



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