YaY
YaY

Reputation: 333

Gnuplot font embedding

I want to postprocess some figues I made in gnuplot with Corel Draw. However when I create these .eps files no information about the font is included in these. Thus corel does not know what font is build in and get some letters wrong. Especialy the greek ones.

thats the line for the output

set terminal postscript enhanced portrait "Times-Roman" 12 size 14cm,12cm                        
set output 'PuckCLnormal.eps

and for the special letters

set title 'a) {/Symbol q} = 0{/Symbol \260}'

How can I thus include the detailed font information in the .eps file so that I can postprocess these gnuplot pics in some other program?

Upvotes: 3

Views: 2767

Answers (2)

sudar
sudar

Reputation: 151

If PDF could be used instead of EPS, the epstopdf command-line utility helps to embed the fonts into an output PDF file. Using pdffonts command-line utility, one can confirm if the fonts are indeed embedded in the PDF file.

Upvotes: 0

mgilson
mgilson

Reputation: 310127

I don't have much experience with this, however, I believe that you need to use something like:

fontfile add "path/to/myfont.pfb"

Alternatively, I believe that you can use something like:

set terminal postscript eps fontfile 'path/to/myfont.ttf'

Gnuplot can handle adobe type 1 ASCII (.pfa) and binary (.pfb) fonts as well as TrueType (.ttf). You can set an environment variable GNUPLOT_FONTPATH as well to set the path(s) that gnuplot will search for fontfiles. Ultimately, check out help fontfile for more info.

Upvotes: 1

Related Questions