Loading ...
Sorry, an error occurred while loading the content.

Re: font-family

Expand Messages
  • Maggie
    You can add font into the font library. Here are the steps. 1. Go to C: WINNT Fonts and find the font library file you wanted. 2. Go to FOP directory and run
    Message 1 of 18 , Mar 26, 2004
    • 0 Attachment
      You can add font into the font library.

      Here are the steps.
      1. Go to C:\WINNT\Fonts and find the font library file you wanted.
      2. Go to FOP directory and run this line of code in command prompt
      (make sure all the path to the jar files are correct)

      java -cp build\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-
      apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar
      org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\OCRAEXT.TTF
      OCRAEXT.xml

      3. Add the following in the "userconfig.xml" in the FOP directory

      <font metrics-file="OCRAEXT.xml" kerning="yes" embed-
      file="C:\WINNT\Fonts\OCRAEXT.TTF">
      <font-triplet name="OCRAExtended" style="normal" weight="normal"/>
      </font>

      4. In your "FOP.bat", add "-c" to look up the userconfig.xml file

      java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop -c
      conf\userconfig.xml %1 %2 %3 %4 %5 %6 %7 %8

      5. You can use the font anywhere in the FO (font-
      family="OCRAExended") as an attribute

      Hope this helps :)

      --- In XSL-FO@yahoogroups.com, mustapha maalej <sbata_1981@y...>
      wrote:
      > hi
      >
      > know someone , where the List of font-family ,
      > that FOP implemented.
      > for exemple Verdana is not yet implemented .
      > thanks
      >
      > Sbata
      >
      > Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit
      partout !
      > Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
      >
      > Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
      Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.