Page 1 of 1

Non-breaking hyphen comes as # in PDF output

Posted: Tue Aug 29, 2017 11:15 am
by chrizzbee
I want to use the non-breaking hyphen, but when publishing my DITA content to PDF, the hyphen is rendered as #. This is the case if I insert the hyphen via oXygen's character map, or as decimal ‑ or as hex ‑

Any clues here? Thanks a lot.
Chris.

Re: Non-breaking hyphen comes as # in PDF output

Posted: Wed Aug 30, 2017 3:46 pm
by radu_pisoi
Hi,

This usually happens when the font that you use have not a glyph for a specific character (Non-breaking hyphen for this case).

The solution is to use a font that includes a glyph for this character. Please see the Set a Font for PDF Output Generated with FO Processor topic from our documentation for more details.

Re: Non-breaking hyphen comes as # in PDF output

Posted: Thu Aug 31, 2017 10:05 am
by chrizzbee
Hi Radu
I don't use any odd font. Just Arial. But I realized that the non-breaking hyphen is only supported in Arial Unicode MS, which was deactivated in the Windows fonts. After activating it I thought, this might be it, but still same result. However, I now used the zero-width no-break space entity ⁠ which works fine for my purpose.
Chris.