xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ari Army <armyofda12mnk...@gmail.com>
Subject Re: Using/Embedding fonts with FOP
Date Mon, 11 Jan 2010 15:13:59 GMT
hey all,
So still having problems making other fonts work ... Getting warning
trying to use normal Arial Black:
WARNING: Font "Arial Black,normal,400" not found. Substituting with

I tried doing something like this:

I tried creating font metric files with fonts Im using like Arial
Black (even though i thought they should auto-detect with new FOP
java -cp build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar;lib\xmlgraphics-commons-1.4svn.jar
org.apache.fop.fonts.apps.TTFReader C:\dev\fop\config\fonts\ariblk.ttf

and then using them with the config file passed in with -c command
line parameter

The config file looks like:

<fop version="1.0">
  <default-page-settings height="11in" width="8.26in"/>
  <!-- use later once get fonts working,
<font-base>file://C:/dev/fop/config/</font-base> -->
  <renderer mime="application/pdf">
          <font-triplet name="Arial Black" style="normal" weight="normal"/>

thought this would automatically work, but doesn't so trying to use
font-metric files
<directory recursive="true">file://C:/dev/fop/config/fonts</directory>

<!--automatically detect operating system installed fonts... thought
this should work for Arial Black since its OS font, but doesnt, hence
y attempting font-metric file for it to work -->


Thanks for any ideas,

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message