[
https://issues.apache.org/jira/browse/FOP-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18084340#comment-18084340
]
Russell Kay commented on FOP-3319:
----------------------------------
As a bit of additional info ... if I create the "XML font metrics" files for
the Arial font and use the @metrics-url attribute to point to the individual
files, that corrects the "soft-hyphen" issue when @embedding-mode="full".
{{<font kerning="yes" }}
{{ embedding-mode="{color:#de350b}full{color}" }}
{{{color:#de350b}
{color:#00875a}metrics-url="docuneering/fonts/arial/arial.xml"{color}{color} }}
{{ embed-url="docuneering/fonts/arial/arial.ttf">}}
{{ <font-triplet name="sans-serif" style="normal" weight="normal"/>}}
{{ <font-triplet name="arial" style="normal" weight="normal"/>}}
{{ <font-triplet name="Arial" style="normal" weight="normal"/>}}
{{</font>}}
I’m including the "XML font metrics" files here for completeness:
[^arial.xml]
> Dash (minus sign) converted to "soft-hyphen"
> --------------------------------------------
>
> Key: FOP-3319
> URL: https://issues.apache.org/jira/browse/FOP-3319
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.11
> Reporter: Russell Kay
> Priority: Major
> Attachments: arial.xml, arialbd.xml, arialbi.xml, ariali.xml,
> fop-std.xconf, soft-hyphen-01.fo, soft-hyphen-01.pdf
>
>
> When embedding a font, the @embedding-mode has 2 options "subset" or "full".
> If you convert the "soft-hyphen-01.fo" test file to PDF and then copy and
> paste the test string...
> When @embedding-mode="subset":
> TEST42-A-00-00-00-00A-041A-A
> When the @embedding-mode="full":
> TEST42A00000000A041AA
> It would appear the dash (minus sign) is being converted to a "soft-hyphen"
> when @embedding-mode="full"
> Test files attached
--
This message was sent by Atlassian Jira
(v8.20.10#820010)