Melih Ovadya wrote:
Thank you Jeremias, I followed the instructions and now I can make it work
by embedding the font in the document.
Looking at the samples in userconfig.xml, this is how I register the fonts:
<font metrics-file="ttfarialuni.xml"
embed-file="C:\WINDOWS\Fonts\ArialUni.ttf" kerning="yes">
<font-triplet name="ArialUni" style="normal" weight="normal"/>
<font-triplet name="ArialUni" style="normal" weight="bold"/>
<font-triplet name="ArialUni" style="italic" weight="normal"/>
<font-triplet name="ArialUni" style="italic" weight="bold"/>
</font>
</fonts>
What happens if I omit the embed-file tag? After the PDF is created, on the
client machine, how will it find the right font to display the characters in
that case?
You will see # symbols for every character that couldn't be mapped to a
known font. The # characters are actually generated into the PDF (as far
as I can tell... because every PDF viewer showed the same placeholder
character.)
With this flag, does FO include whole font in the PDF, or just a
subset to be able to display the Unicode characters?
Half way between those two. It will embed enough of the font to display
all characters used in the document. That is, it does noticeably enlarge
the PDF even if the document only contains characters from US-ASCII.
A long-standing issue I have with this stuff is that on Windows, I have
more than enough fonts to display a huge subset of Unicode, and Java
makes use of font substitution, such that when you write, say, "猫", it
will display it even if you've set the font to Times New Roman. But with
PDF, if I don't have ArialUni.ttf on my machine and it wasn't embedded
into the PDF, the PDF viewer isn't smart enough to substitute fonts. I
think (correct me if I'm wrong) that this is more an issue with PDF,
though, than an issue with FOP. I personally prefer generating HTML to
generating PDF, and we only generate PDF (and TIFF, for that matter) due
to client feature requests. :-/
Daniel
--
Daniel Noll
NUIX Pty Ltd
Level 8, 143 York Street, Sydney 2000
Phone: (02) 9283 9010
Fax: (02) 9283 9020
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]