Font Letter changes when saved in .svg format in xmgrace

In summary, the issue with the font changing when saving a .svg file in xmgrace is likely due to the selected font not being supported by the svg renderer or viewer. To resolve this issue, you can try using a different font or converting the file to a different format. Additionally, for further support and discussion on svg-related topics, you can visit the Inkscape community forum.
  • #1

DHN

9
0
Hi,
1) I want to save a .agr file in xmgrace. So, i go to File--> print setup--> device --> svg --> accept and then i give Cntrl+p in order to save it. But if i view the .svg file the font of the letters (say labeling the x-axis and y-axis etc in Times Roman font..) get altered into another font.

If i save in eps/ps the letter font doesn't change but this happens only with .svg format.

I want to get the same letter font saved in .svg format too.

How can i resolve this issue?

2) I tried to log in for the xmgrace forums "http://plasma-gate.weizmann.ac.il/Grace/phpbb/ucp.php?mode=register" in order to put this questions but in vain. I am unable to login there and ask my questions. So can anybody share the link for the xmgrace discussion forums where i can log in and ask questions?Any suggestions are highly appreciated.

Thank you.
 
Computer science news on Phys.org
  • #2
Since nobody else answered, I'll guess that the svg format does not support all possible fonts.
 
  • #3
DHN said:
Hi,
1) I want to save a .agr file in xmgrace. So, i go to File--> print setup--> device --> svg --> accept and then i give Cntrl+p in order to save it. But if i view the .svg file the font of the letters (say labeling the x-axis and y-axis etc in Times Roman font..) get altered into another font.

If i save in eps/ps the letter font doesn't change but this happens only with .svg format.

I want to get the same letter font saved in .svg format too.

How can i resolve this issue?

2) I tried to log in for the xmgrace forums "http://plasma-gate.weizmann.ac.il/Grace/phpbb/ucp.php?mode=register" in order to put this questions but in vain. I am unable to login there and ask my questions. So can anybody share the link for the xmgrace discussion forums where i can log in and ask questions?Any suggestions are highly appreciated.

Thank you.
If you open the resultant .svg file in a text editor, such as Notepad++, you can see what font information is being exported by xmgrace. If the selected font is not supported by the svg renderer or viewer, you will presumably get the supported alternate glyph/font.

Here are a couple of references regarding svg font implementation:
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_fonts
https://www.w3.org/TR/SVG/fonts.html

This is link to a w3 test page that allows you to see a sample of your browser's svg font implementation:
https://www.w3.org/Graphics/SVG/Test/20030813/htmlframe/full-fonts-elem-04-b.html

For in-depth and specific svg-related discussion, you can start here: https://inkscape.org/en/community/
 
  • Like
Likes anorlunda

What is a .svg file?

A .svg file is a vector image file format that stands for Scalable Vector Graphics. It uses XML-based text format to describe how an image should appear, making it scalable to any size without losing quality.

Why does the font letter change when saved in .svg format?

The font letter may change when saved in .svg format because the file format does not embed the font used in the image. Instead, it references the font installed on the computer. If the font is not available on the computer where the .svg file is opened, the system will automatically replace it with a different font.

How can I prevent font letter changes when saving in .svg format?

To prevent font letter changes when saving in .svg format, you can either embed the font in the file or convert the text into curves before saving. By embedding the font, the file will contain all the necessary font information, making it appear the same on any computer. Converting the text into curves will turn the text into vector shapes, eliminating the need for the specific font.

Can I edit the font in a .svg file?

Yes, you can edit the font in a .svg file. However, you will need to have the specific font installed on your computer to maintain the original appearance. Otherwise, the system will replace it with a different font.

Are there any advantages to using .svg format for fonts?

Yes, there are advantages to using .svg format for fonts. Since .svg files are vector images, the fonts can be scaled to any size without losing quality. Additionally, .svg files are smaller in size compared to other image file formats, making it easier to share and load on websites.

Suggested for: Font Letter changes when saved in .svg format in xmgrace

Back
Top