|
From: sfeam <sf...@us...> - 2016-03-22 06:24:07
|
On Tuesday, 22 March 2016 10:36:44 AM Tatsuro MATSUOKA wrote: > Hello > > I made a feature request: > > Supports character entity reference > > https://sourceforge.net/p/gnuplot/feature-requests/440/ > > As I wrote there, on the gd based terminals, one can use > > for example following code to write a Greek symbol "theta". > > set term png > set output 'test.png' > plot sin(x) title '{/:Italic \θ}' > set output > > Why this feature only supports on the gd based terminals? > > Does anyone know reasons? libgd includes a table of character entity names that maps them to the ISO-10646 code point for that character: https://github.com/libgd/libgd/blob/master/src/entities.h The text-handling routine in libgd uses this table to replace for example "\&theta" with ISO-10646 codepoint 952. Ethan |