ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  it is possible to store text as vectors when saving a chart image as SVG.(Java)
Posted by Wontae on Dec-12-2024 20:34
Hi My name is Wontae
I hope you understand even if the English is strange because I used a translator.

I have a question.
When saving a chart as an SVG in the Java version, is it possible to save the text as vectors?



I am using ChartDirector 7.1.4 (Java version).

I am Korean and using a Linux-based OS (Ubuntu). When the required fonts for displaying Korean text are not installed, the text is broken when I specify the font path for the chart.

The font I am using is a custom TTF font.

When saving as SVG, the text appears with a substitute font on Windows, but when embedding the image into a PDF, the text still appears garbled on Windows. So I am asking if it’s possible to save the text as vectors to resolve this issue.

I want to thank you in advance for always providing kind and fast responses!

  Re: it is possible to store text as vectors when saving a chart image as SVG.(Java)
Posted by Peter Kwan on Dec-13-2024 11:34
Hi Wontae,

Is the SVG used on a web site and viewed with a browser? Is the font a true type font (.ttf, .ttc or .otf)?

The font is not just vectors. Each character in the font also includes hinting instructions.  For custom fonts in web pages, the usual method is to use the web fonts. See:

https://fonts.google.com/knowledge/using_type/using_web_fonts

For PDF, it should automatically embed the font characters (together with hinting instructions and other information) in the PDF, so it should look fine. If in your case, the PDF does not work, is it possible to email me your font, and also a simple program to demonstrate the problem? You can just create an empty chart with a Korean chart title to let me reproduce the problem. By email address is pkwan@advsofteng.net

Best Regards
Peter Kwan