Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-872

Fonts not found for SVG texts (when not in C:\WINNT\Fonts)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • Labels:
      None
    • Environment:
      Operating System: Windows 2000
      Platform: PC

      Description

      As posted as a FOP FOP-1614 (https://issues.apache.org/bugzilla/show_bug.cgi?id=46371), this is rather a Batik issue:

      Fonts used in SVG images need to be available in C:\WINNT\Fonts (or: OS font system). Due to font license restrictions, some fonts only are allowed to be available for our Java application and not OS wide. Therefore, I copied the TTF fonts in a custom directory which works well with Apache FOP. I tried to set a custom font configuration for the Java application via

      java -Dsun.awt.fontconfig ...

      and this basically works in a test application as I am able to create a Font object with the correct family name and sub name. But Batik seems to ignore this.

        Attachments

        1. patch_external_fonts_proposal.txt
          87 kB
          Hugo de Almeida Cocharro
        2. icon-font-dark.png
          1 kB
          Hugo de Almeida Cocharro
        3. icon-font.png
          1 kB
          Hugo de Almeida Cocharro
        4. Embed.java
          2 kB
          Alexis Andre

          Issue Links

            Activity

              People

              • Assignee:
                batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
                Reporter:
                mhilpert@gmx.de M.H.
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: