Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-3079

Fonts are Not getting rendered in FOP-2.6 while genrating PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.6
    • None
    • font/opentype, renderer/pdf
    • None
    • Important

    Description

      Fonts which Are Auto detected in FOP-2.4 is not Working in FOP-2.6 .

      On windows with openjdk version "11.0.7" trying XSL to PDF Conversion with Apache FOP-2.6.

       

      Tried with following Changes in configuration file :

      1 . Adding Directory for Font Location 
      <directory>C:\Windows\Fonts</directory>

      2. Adding font triplet in Configuraion File 
      <font kerning="yes" embed-url="C:/Windows/Fonts/Arial.ttf" embedding-mode="subset">
              <font-triplet name="Arial" style="normal" weight="normal"/>
       </font>

      3. Adding font triplet in Configuraion File with URL path :
      <font kerning="yes" embed-url="file:///C:/windows/fonts/arial.ttf">
              <font-triplet name="Arial" style="normal" weight="normal"/>
       </font>

      4. MOved fonts file (.ttf ) to same location as of Configuration file

       

      But still Throws This Error:

       

       

      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: Font "Arial,normal,400" not found. Substituting with "any,normal,400".
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The contents of fo:region-before on page 1 exceed the available area in the block-progression direction by 3000 millipoints. (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: Hyphenation pattern not found. URI: none.
      org.apache.fop.events.LoggingEventListener processEvent
      WARNING: The contents of fo:region-after on page 1 exceed the available area in the block-progression direction by 3000 millipoints. (No context info available)
      org.apache.fop.events.LoggingEventListener processEvent

      Attachments

        1. userconfig.xml
          24 kB
          Ashish Sharma
        2. XSLTOPDF.java
          3 kB
          Ashish Sharma

        Activity

          People

            Unassigned Unassigned
            ashsha3k Ashish Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: