Applies to :
Vista for Linux
Vista for Windows
Custom fonts are not rendered correctly in SVG image when you open the image in a image viewer.
Symptoms
You export your Vista diagram in SVG format.
Then, after opening the SVG image in a image viewer, the custom fonts are not rendered correctly.
However, the fonts are rendered correctly when you open the SVG image in a browser.
Causes
Vista exports the SVG document with embedded fonts using this construction :
<style type="text/css">
@font-face {
...
}
</style>
...
<text x="" y="" font-family="Playball">.....</text>
This is standard HTML syntax that is well interpreted by recent browsers.
Unfortunately, classic image viewers won't interpret this code to perform the rendering, thus, the viewer will use the default system font.
Solutions
In order to render the custom fonts correctly in a image viewer, you need to open the SVG image in a browser.
We do not plan to change this approach for the moment.