Font Letter changes when saved in .svg format in xmgrace

  • Thread starter Thread starter DHN
  • Start date Start date
  • Tags Tags
    Font Format
Click For Summary
SUMMARY

The issue of font alteration when saving .agr files in xmgrace to .svg format is confirmed, as SVG does not support all fonts available in xmgrace. Users experience font changes, such as Times Roman, when exporting to SVG, while EPS/PS formats retain the original font. To investigate the exported font information, users can open the SVG file in a text editor like Notepad++. For further understanding of SVG font implementation, references to Mozilla Developer Network and W3C specifications are provided.

PREREQUISITES
  • Familiarity with xmgrace software for graph plotting.
  • Understanding of SVG (Scalable Vector Graphics) format and its limitations.
  • Basic knowledge of font types and rendering in graphic formats.
  • Experience with text editors like Notepad++ for file inspection.
NEXT STEPS
  • Research "SVG font implementation" on Mozilla Developer Network.
  • Explore "W3C SVG font specifications" for detailed technical insights.
  • Investigate alternative graphic formats that preserve font integrity, such as EPS or PDF.
  • Join the Inkscape community for discussions on SVG-related issues and solutions.
USEFUL FOR

This discussion is beneficial for graphic designers, data analysts using xmgrace, and developers working with SVG files who need to ensure font consistency in their visual outputs.

DHN
Messages
9
Reaction score
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
Since nobody else answered, I'll guess that the svg format does not support all possible fonts.
 
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   Reactions: anorlunda

Similar threads

  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K