[jira] [Commented] (FOP-3319) Dash (minus sign) converted to "soft-hyphen"

"Russell Kay (Jira)" <[email protected]> Fri, 29 May 2026 11:17:00 +0000 (UTC)
Newsgroups gmane.text.xml.fop.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/FOP-3319?page=3Dcom.atlassian.j=
ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D180843=
40#comment-18084340 ]=20

Russell Kay commented on FOP-3319:
----------------------------------

As a bit of additional info ... if I create the "XML font metrics" files fo=
r the Arial font and use the @metrics-url attribute to point to the individ=
ual files, that corrects the "soft-hyphen" issue when @embedding-mode=3D"fu=
ll".
=C2=A0
{{<font kerning=3D"yes"=C2=A0}}
{{=C2=A0 =C2=A0embedding-mode=3D"{color:#de350b}full{color}"=C2=A0}}
{{{color:#de350b}=C2=A0 =C2=A0{color:#00875a}metrics-url=3D"docuneering/fon=
ts/arial/arial.xml"{color}{color}=C2=A0}}
{{=C2=A0 =C2=A0embed-url=3D"docuneering/fonts/arial/arial.ttf">}}
{{=C2=A0 =C2=A0<font-triplet name=3D"sans-serif" style=3D"normal" weight=3D=
"normal"/>}}
{{=C2=A0 =C2=A0<font-triplet name=3D"arial" style=3D"normal" weight=3D"norm=
al"/>}}
{{=C2=A0 =C2=A0<font-triplet name=3D"Arial" style=3D"normal" weight=3D"norm=
al"/>}}
{{</font>}}
I=E2=80=99m including the "XML font metrics" files here for completeness:

[^arial.xml]=C2=A0

> 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 "ful=
l".
> If you convert the "soft-hyphen-01.fo" test file to PDF and then copy and=
 paste the test string...
> When @embedding-mode=3D"subset":
> TEST42-A-00-00-00-00A-041A-A
> When the @embedding-mode=3D"full":
> TEST42A00000000A041AA
> It would appear the dash (minus sign) is being converted to a "soft-hyphe=
n" when @embedding-mode=3D"full"
> Test files attached



--
This message was sent by Atlassian Jira
(v8.20.10#820010)