Re: [XSL-FO] FOP font embed, configuration question
- I was not fully correct earlier.
I do need Configuration.put for fontBaseDir.
So basically what I have right now in the code is...
userConfigFile = new
options = new Options(userConfigFile);
And my userconfig.xml....
<font-triplet name="ArialUnicodeMS" style="normal"
I have arialuni.xml, arialuni.ttf and
userconfig.xml in the foptest directory.
Things work fine. Thanks !! Hope this helps for
someone else who might experience similar problems.
--- Mark Ivs <markivs2003@...> wrote:
> Again, thanks for response.
> Now I see what the problem is. Earlier I was under
> assumption that
> there are two ways to embed font.
> 1. Using the options class.
> options = new Options(userConfigFile);
> 2. Using Configuration.put
> That's why I was confused. Anyway, now it works
> Since I have arialuni.xml, arialuni.ttf and
> userconfig.xml in the same directory, I didn't even
> have to set the baseDir and fontBaseDir using
> I do not have any bold or italic. So I didn't add
> font triplet for those.
> Yes, I will register at fop mailing list.
> Once again, thanks for your help.
> --- Chris Bowditch <bowditch_chris@...>
> > Mark Ivs wrote:
> > <snip/>
> > > But I get an error in the console saying
> > font
> > > ArialUnicodeMS". I have arialuni.xml,
> > and
> > > userconfig.xml in the foptest directory.
> > A couple of possibilities:
> > 1) FOP isnt finding your user config xml file as
> > suggest below.
> > 2) You have specified font-weight="bold" somewhere
> > in your FO. The Font
> > triplet you have defined above is for normal
> > glyphs only. Could
> > you Copy and paste the precise error message, as
> > will say whether it
> > was looking for bold/italic, etc.
> > >
> > > I am not sure where I am going wrong. Another
> > thing I
> > > wasn't sure was, no where in the code I tell fop
> > to
> > > look for userconfig.xml file. Dose fop
> > automatically
> > > look for that file in the baseDir ?
> > You need to do something like:
> > userConfigFile = new
> > File("c:\home\foptest\userconfig.xml");
> > options = new Options(userConfigFile);
> > I thought I saw you doing this in the code snippet
> > you provided.
> > BTW: It is best to ask FOP specific questions on
> > FOP user list
> > rather than the more generic XSL-FO list. Sign up
> > here:
> > http://xml.apache.org/fop/maillist.html#fop-user
> > <snip/>
> > Chris
> Do you Yahoo!?
> Yahoo! Search - Find what you�re looking for faster
> Yahoo! Groups Links
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster