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

[PATCH] Soft font support for TrueType fonts in PCL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.2
    • renderer/pcl
    • None

    Description

      Currently all fonts (except a limited set of native fonts) are rastered for PCL output. This has the problem of the documents being large in size and should FOP be used in the cloud, rendering to PCL would not be possible as it's using AWT.

      This patch in part resolves this problem by converting TrueType fonts to PCL soft fonts. This allows the size to be much smaller and has been a standard feature since PCL 5.

      [EDIT] For all other fonts which are not TrueType it will still revert back to being rasterized. It will currently default to using soft fonts for TrueType fonts but this can overriden by using <text-rendering>bitmap</text-rendering>.

      Attachments

        1. patch.diff
          121 kB
          Robert Meyer
        2. patch2.diff
          47 kB
          Robert Meyer
        3. rasterized.pcl
          1.07 MB
          Robert Meyer
        4. softfonts.pcl
          185 kB
          Robert Meyer

        Activity

          People

            Unassigned Unassigned
            rmeyer Robert Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: