|
From: Ethan M. <eam...@gm...> - 2015-02-03 21:33:05
|
On Tue, Feb 3, 2015 at 11:06 AM, Kevin Klein <kk...@gm...> wrote: > How do I use TTF fonts that I have downloaded in an output .svg file? I > was reading the svg help page here: > > http://gnuplot.sourceforge.net/docs_4.2/node421.html That document is for gnuplot version 4.2, which is now at least 6 years out of date. > How do I correctly use true type fonts in an svg terminal? So far as I know, that is not possible in any of the normal svg viewers. The limitation is not on the gnuplot end, it is a matter of what the svg viewing program can handle. The current documentation (gnuplot versions 4.6 and 5.0) says: %%% SVG allows you to embed fonts directly into an SVG document, or to provide a hypertext link to the desired font. The `fontfile` option specifies a local file which is copied into the <defs> section of the resulting SVG output file. This file may either itself contain a font, or may contain the records necessary to create a hypertext reference to the desired font. Gnuplot will look for the requested file using the directory list in the GNUPLOT_FONTPATH environmental variable. NB: You must embed an svg font, not a TrueType or PostScript font. %%% |