I'm unable to register new fonts with FOP (svn-trunk). 

The metrics file are generated with this command line:

""java"   -cp "C:\Documents and
Settings\pverdret\workspace\FOP\build\fop.jar;C:\Documents and Setti
ngs\pverdret\workspace\FOP\build\fop-sandbox.jar;C:\Documents and
Settings\pverdret\workspace\FOP\bu
ild\fop-hyph.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\xml-apis-1.3.02.jar;C:\Documen
ts and Settings\pverdret\workspace\FOP\lib\xercesImpl-2.7.1.jar;C:\Documents
and Settings\pverdret\w
orkspace\FOP\lib\xalan-2.7.0.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\serializer-2.7
.0.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\batik-all-1.6.jar;C:\Documents and Setti
ngs\pverdret\workspace\FOP\lib\xmlgraphics-commons-1.1-snapshot.jar;C:\Documents
and Settings\pverdr
et\workspace\FOP\lib\avalon-framework-4.2.0.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib
\commons-io-1.1.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\commons-logging-1.0.4.jar;C
:\Documents and
Settings\pverdret\workspace\FOP\lib\jimi-1.0.jar;C:\Documents and
Settings\pverdret\
workspace\FOP\lib\jai_core.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\jai_codec.jar;C:
\Documents and Settings\pverdret\workspace\FOP\lib\fop-hyph.jar;" 
org.apache.fop.fonts.apps.TTFRead
er -enc ansi C:/WINNT/fonts/ARIAL.TTF templates/ARIAL.xml
TTF Reader for Apache FOP svn-trunk

Parsing font...
Reading C:/WINNT/fonts/ARIAL.TTF...
Number of glyphs in font: 1674
3 cmap tables
CMAP format: 4
Creating xml font file...
Creating WinAnsi encoded metrics...
Writing xml font file templates\ARIAL.xml...
This font contains no embedding license restrictions.

XML font metrics file successfully created.

In my configuration file i've added the following lines: 


  <font metrics-url="file:///e:/3CO/templates/Arial.xml" kerning="yes"
embed-url="file:///c:/WINNT/fonts/Arial.ttf">
       <font-triplet name="Arial" style="normal" weight="normal"/>
   </font>

Here is an excerpt of FO test file: 

    <fo:inline font-family="Arial" font-weight="normal" font-style="normal">
      Arial-normal-normal font
    </fo:inline>

I use the following command line for my test:

$ bin/fop.bat -v -x -c templates/3co.xml -fo test_arial.fo -pdf 1.pdf
"java"   -cp "C:\Documents and
Settings\pverdret\workspace\FOP\build\fop.jar;C:\Documents and Settin
gs\pverdret\workspace\FOP\build\fop-sandbox.jar;C:\Documents and
Settings\pverdret\workspace\FOP\bui
ld\fop-hyph.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\xml-apis-1.3.02.jar;C:\Document
s and Settings\pverdret\workspace\FOP\lib\xercesImpl-2.7.1.jar;C:\Documents
and Settings\pverdret\wo
rkspace\FOP\lib\xalan-2.7.0.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\serializer-2.7.
0.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\batik-all-1.6.jar;C:\Documents and
Settin
gs\pverdret\workspace\FOP\lib\xmlgraphics-commons-1.1-snapshot.jar;C:\Documents
and Settings\pverdre
t\workspace\FOP\lib\avalon-framework-4.2.0.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\
commons-io-1.1.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\commons-logging-1.0.4.jar;C:
\Documents and Settings\pverdret\workspace\FOP\lib\jimi-1.0.jar;C:\Documents
and Settings\pverdret\w
orkspace\FOP\lib\jai_core.jar;C:\Documents and
Settings\pverdret\workspace\FOP\lib\jai_codec.jar;C:\
Documents and Settings\pverdret\workspace\FOP\lib\fop-hyph.jar;"
org.apache.fop.cli.Main -v -x -c te
mplates/3co.xml -fo test_arial.fo -pdf 1.pdf
FOP Version svn-trunk
[INFO] FOP - Input mode:
[INFO] FOP - FO
[INFO] FOP - fo input file: test_arial.fo
[INFO] FOP - Output mode:
[INFO] FOP - application/pdf
[INFO] FOP - output file: 1.pdf
[INFO] FOP - OPTIONS
[INFO] FOP - user configuration file: templates\3co.xml
[WARN] FontInfo - Font 'Arial,normal,400' not found. Substituting with
default font.
[WARN] FontInfo - Font 'ArialNarrow,normal,400' not found. Substituting with
default font.

Thank for your help,
-- 
Philippe Verdret

-- 
View this message in context: 
http://www.nabble.com/Problem-for-registering-new-fonts-with-FOP-%28svn-trunk%29-tf2126206.html#a5866467
Sent from the FOP - Users forum at Nabble.com.


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

Reply via email to