See my comments inline. On 17.06.2005 11:31:39 Sandeep P wrote: > HI, > > I am trying to add (embed) a new font to my FOP example, Which is > to ceate a PDF File. I am using True Type font.I creted a matric file using > the java api provided and added its entry to the userconfig.xml file. Still > it is saying the error as > > [ERROR] unknown font verdana,normal,bold so defaulted font to any > > > > I am giving the snippet which is there in my fo file as well as in my > userconfig file. > > > > <!-- This is of userconfig file --> > <font metrics-file="file:///C:/fonts/verdana.xml" kerning="yes" > embed-file="file:///C:/fonts/verdana.ttf"> > > <font-triplet name="verdana" style="normal" weight="normal"/>
This defines "verdana" only for the normal font-weight. > </font> > > > > The snippet of my fo file is > > <fo:block text-align="center" font-family="verdana" font-size="10pt" > font-weight="bold" font-style="normal" > Here you access the font with font-weight="bold" for which there is no font-triplet in your code. Please note that FOP can't create bold fonts from non-bold fonts. You'd have to find a bold font in the first place. If you change from font-weight="bold" to font-weight="normal" you should get the Verdana font but not in bold. > > </fo:block> > > > i had created using XMLSPY to refer to the font explicitly using the > font-family tag, If any one can help plz help me out. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
