Using Fonts included in JAR File

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Using Fonts included in JAR File

Heiko Ottenbacher
Hello Evrybody,

I am trying to use some extra Fonts that are in a JAR File with FOP 2.2 -
and it does not work :(

Using that kinda config:

<renderers>
  <renderer mime="application/pdf">
     <fonts>
        <auto-detect/>
       
         
               <font-triplet name="Pacifico" style="normal"
weight="normal"/>
         
     </fonts>
  </renderer>
</renderers>

It always tells me :

Aug 30, 2017 4:05:43 PM org.apache.fop.fonts.LazyFont load
SCHWERWIEGEND: Failed to read font metrics file null
java.io.EOFException: Reached EOF, file size=97628
        at
org.apache.fop.fonts.truetype.FontFileReader.read(FontFileReader.java:100)
        at
org.apache.fop.fonts.truetype.FontFileReader.readTTFUByte(FontFileReader.java:124)
        at
org.apache.fop.fonts.truetype.FontFileReader.readTTFUShort(FontFileReader.java:152)
        at
org.apache.fop.fonts.truetype.OpenFont.readHorizontalMetrics(OpenFont.java:1255)
        at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:735)
        at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:117)
        at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:101)
        at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:126)
        at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:110)
        at org.apache.fop.fonts.LazyFont.load(LazyFont.java:121)
        at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:238)
        at org.apache.fop.fonts.Font.getAscender(Font.java:118)


What am I doing wrong?

Thanks!

Heiko



--
Sent from: http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]