Andrew S. wrote:
This is a screen shot of a document which contains a simple table, and
the cells in the table contain a unicode checkbox character and some text:
Inline image 1
And a snippet of the XML looks like this:
<informaltable frame="none">
<tgroup align="left" cols="3">
<colspec align="left" colname="c1" colnum="1" colwidth=".01*"/>
<colspec align="left" colname="c2" colnum="2" colwidth=".01*"/>
<colspec align="left" colname="c3" colnum="3"/>
<tbody>
<row>
<entry nameend="c1" namest="c1"/>
<entry nameend="c3" namest="c2">☐ SOME PLAIN TEXT HERE</entry>
</row>
If I convert this file to Word, it looks fine. If I make it a PDF, the
unicode checkbox characters are converted to hash symbols. I will note
that Oxygen handles the transformation to PDF without issue. I've
attached the DocBook XML, and a PDF rendering from XMLMind and one from
Oxygen.
Do I need to specify some option in order to have the unicode checkbox
symbols appear in the resulting PDF? I will note that I am using
XMLMind Professional Edition 7.6.0.
This is a well-known PDF issue. Please refer to this FAQ (which also
applies to your issue):
---
When I convert documents written in Russian (or Polish or Czech or any
non-western language) to PDF, almost all characters are replaced by the
"#" character. Is there a workaround for this problem?
---
http://www.xmlmind.com/xmleditor/faq.html#custom_pdf_fonts
In a nutshell, you may want to give the "Use Windows® standard fonts"
button a try. See "Procedure 9.1. How to use Times New Roman, Arial and
Courier New instead of Times, Helvetica, Courier",
http://www.xmlmind.com/xmleditor/_distrib/doc/help/addonOptions.html#fopOptions
Note that I don't know which fonts contain a glyph for the Unicode
checkbox character, therefore I cannot help you in choosing the right
font mapping. So let's hope that simply clicking "Use Windows® standard
fonts" and restarting XMLmind XML Editor will solve the problem.
FYI, It works out of the box using oXygen because it seems that, out of
the box, oXygen instructs FOP to embed the following fonts (according to
your "DocBookBug-oxygen.pdf"):
Arial, Arial Bold, Arial Unicode MS, Times New Roman.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support