[ https://issues.apache.org/jira/browse/BATIK-872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347448#comment-17347448 ]
Guru BG commented on BATIK-872: ------------------------------- Apologies for commenting after a good 7 years. I stumbled upon this issue on batik which is something I am facing right now, My problem is, batik seems to recognize the font only if the application is restarted, if font is added during the application run , its not found by batik. If font is included in the SVG or XSL file , even if the app is not restarted. But I tried to register the font in my program and it is not picked up by the batik . I know its been far too long for this issue to be revisited , hope folks here can suggest something, I am using batik 1.8 . > Fonts not found for SVG texts (when not in C:\WINNT\Fonts) > ---------------------------------------------------------- > > Key: BATIK-872 > URL: https://issues.apache.org/jira/browse/BATIK-872 > Project: Batik > Issue Type: Bug > Components: SVGGraphics2D > Affects Versions: 1.7 > Environment: Operating System: Windows 2000 > Platform: PC > Reporter: M.H. > Assignee: Batik Developer's Mailing list > Attachments: Embed.java, icon-font-dark.png, icon-font.png, > patch_external_fonts_proposal.txt > > > 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. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org