↓ and ↑ symbols not rendering in custom PDF output

Post here questions and problems related to editing and publishing DITA content.
GregWait
Posts: 10
Joined: Thu Apr 21, 2016 8:49 pm

↓ and ↑ symbols not rendering in custom PDF output

Post by GregWait »

One of our writers needs to use ↓ and ↑ in text. org.dita.pdf2 has no problem with the characters. Our custom plugin, based on org.dita.pdf2 returns "# and #" no matter how I include the characters. I have removed all of my customizations to the point where my shell file simply imports the org.dita.pdf2 shell file, and yet I still get "# and #" when at this point (as far as I can tell) the outputs should be identical in every way.

Clearly there is something involved here outside of my custom xsl that is causing this.

Thoughts? I really need a solution here. Thanks!

Greg
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: ↓ and ↑ symbols not rendering in custom PDF output

Post by Radu »

Hi Greg,

Probably the default font used to build the PDF does not support rendering these characters.
Maybe you can try to control better the fonts used when the PDF is constructed:

https://www.oxygenxml.com/doc/versions/ ... e-FOP.html

For example there are fallback font definitions like:

Code: Select all

Helvetica, Arial Unicode MS, Tahoma, Batang, SimSun
and you can add extra fonts to the end of the enumeration which may better support that specific character.
Or an alternative is to create images for those symbols and refer to those images instead.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply