↓ and ↑ symbols not rendering in custom PDF output

Posts: 10
Joined: Thu Apr 21, 2016 8:49 pm

↓ and ↑ symbols not rendering in custom PDF output

Post by GregWait » Wed Dec 04, 2019 9:47 pm

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!


Posts: 7032
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Thu Dec 05, 2019 12:19 pm

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.

Radu Coravu
<oXygen/> XML Editor

Post Reply