Dear list,

i am desperately trying to install and use my own truetype-font, but i always get error messages...

Creating the font metrics worked well. Then i have added the following section to my userconfig.xml file:

  <fonts>
    <font metrics-file="/home/chris/fop/fop-0.20.5/fonts/metaplnr.xml"
          kerning="yes"
          embed-file="/home/chris/fop/fop-0.20.5/fonts/METAPLNR.ttf">
      <font-triplet name="Meta" style="normal" weight="normal"/>
    </font>
  </fonts>

Those files really exist, and i have tried every possible syntax: file:/home/chris/..., file:///home/chris/..., /home/chris..., etc. Didn't make a difference.

In my .fo file i have the following block:

       <fo:block font-size="12pt"
                font-family="Meta"
                line-height="15pt"
                span="none">blahblahblah</fo:block>

Whenever i start fop, i get the following messages:

[EMAIL PROTECTED]:~/fop/fop-0.20.5> !fop
fop.sh -c conf/userconfig.xml main.fo -awt
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[ERROR] unknown font Meta,normal,normal so defaulted font to any
[ERROR] unknown font Meta,normal,normal so defaulted font to any
[INFO] [2]
[INFO] [3]
[INFO] [4]
[INFO] [5]
[INFO] Parsing of document complete, stopping renderer

It just doesn't find the fonts! Did i miss something?

TIA,
Chris


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to