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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • SVGGraphics2D
    • None
    • 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. Embed.java
          2 kB
          Alexis Andre
        2. icon-font.png
          1 kB
          Hugo de Almeida Cocharro
        3. icon-font-dark.png
          1 kB
          Hugo de Almeida Cocharro
        4. patch_external_fonts_proposal.txt
          87 kB
          Hugo de Almeida Cocharro

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: