Take a look at ITextRenderer#getFontResolver(). Basically you need to
make the font known to both iText and FS to use it. An alternative is
to use @font-face in the CSS.
Pete
The BaseFont and FontFactory calls aren't necessary. FS will make the
necessary arrangements (i.e. the #addFont() call is enough). There
are overloaded variations of #addFont() that allow to set the
encoding, whether or not the font is embedded, etc.
With the @font-face block, url() needs to be a valid URL/URI (e.g. a
file:// URL or a relative URL).
Regardless you need to reference the font in your CSS or X/HTML (e.g.
<p style="font-family: MyFontFamily">...</p>
Pete
--
You received this message because you are subscribed to the Google Groups "Flying Saucer Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flying-saucer-u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.