I am attempting to use FOP to export a PDF with UTF-8 figures, ideally without requiring to embed the font.
The next code:
<fo:block font="10pt Helvetica" text-align="justify" space-after="10pt" space-before="8pt" keep-with-previous="auto" keep-together.within-page="auto"> <fo:block font-weight="bold" color="gray">Summary</fo:block> <fo:block text-indent="1em" keep-with-previous="always"> <fo:block text-indent="1em" space-before="4pt"> <fo:block text-indent="1em" space-before="4pt">私はガラスを食べられます。それは私を傷つけません </fo:block> </fo:block> </fo:block> </fo:block>
produces #################### within the PDF. I am conscious of the problem: http://xmlgraphics.apache.org/fop/faq.html#pdf-characters
After I go below Document Qualities->Fonts, the Helvetica font shows up with 'Encoding: ANSI'. It is possible to method to change this?
Basically were embedding, an amount be the easiest method to achieve this without getting use of Helvetica.ttf? I have attempted using DejaVuSans, however i finish track of squares instead of the # signs.
Observe that this isn't a 1-time use in the command line (that might be a start), but extra time for an existing application. I am attempting to support UTF-8 figures without an excessive amount of complexity.
AFAICT, the fonts incorporated within the PDF specification only include figures from ISO-Latin-1. If you prefer a character that falls outdoors of individuals defined in Annex D: Character Sets and Encodings, then you're likely to embed the font.