Page 1 of 1

↓ and ↑ symbols not rendering in custom PDF output

Posted: Wed Dec 04, 2019 9:47 pm
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

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

Posted: Thu Dec 05, 2019 12:19 pm
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