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

FOP 2.0: Font not found depending on SVG XML

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • foreign/svg
    • None
    • Windows 7 64 Bit, Java 8 64 Bit.

    Description

      FOP 2.0 introduced the ability that SVGs now can use the fonts configured via the standard FOP user_config.xml.

      This works only for specific SVGs but not for all. We have 2 basic "SVG types" in our XSL-FO documents: both are generated differently. But both reference the same font:

      A) <g stroke-miterlimit="1" stroke-width="0.5" font-size="8px" font-family="'HelveticaNeueLT Com 45 Lt'" stroke-linecap="round" stroke-linejoin="round">

      B) <g style="fill:rgb(46,38,94); text-rendering:geometricPrecision; font-size:9px; shape-rendering:crispEdges; font-family:'HelveticaNeueLT Com 45 Lt'; stroke:rgb(46,38,94);">

      As you see, both SVGs have the very same font name "HelveticaNeueLT Com 45 Lt". However, only A) seems to use the font definition of FOP, but B) doesn't. We multi-checked this by changing FOP font configs and un-/installed the font on Windows.

      As a "workaround", we still need to install the fonts additionally in the Windows system for B) to still find the font.

      My guessing is, that the different SVG code of both cases is the reason. Perhaps FOP does not consider the B) case to search the font in it's fop_userconfig-xml and therefore "falls back" to search in the installed system fonts.

      Attachments

        Activity

          People

            Unassigned Unassigned
            JavaDev1605 M.Hilpert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: