You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/03/05 18:17:00 UTC

[jira] [Commented] (PDFBOX-5115) U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: WinAnsiEncoding

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

Tilman Hausherr commented on PDFBOX-5115:
-----------------------------------------

The PDF specification has this:
{quote}
The hyphen character is also encoded as 255 in WinAnsiEncoding. The meaning of this duplicate code shall be “soft hyphen,” but it shall be typographically the same as hyphen.
{quote}
I'm not yet sure what to do. We had a similar problem with nbspace, and it took several releases until we got it right 😂

> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: WinAnsiEncoding
> ----------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5115
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5115
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.22
>            Reporter: Andriy
>            Priority: Minor
>
> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: WinAnsiEncoding
>  
> this symbol U+00AD are in WinAnsiEncoding by the code but the slightly different name
>  
> {quote}private static final Object[][] WIN_ANSI_ENCODING_TABLE = {
> // adding some additional mappings as defined in Appendix D of the pdf spec
>  ...
>  \{0255, "hyphen"}
> {quote}
>  
>  it is right that both code and name must be equal ? 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org