|
From: <tim...@en...> - 2005-12-10 21:12:03
|
Dear gnuplot enthusiasts, I have updated the wxWidgets terminal hosted in gnuplot's developpement=20 pages : http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1267434&grou= p_id=3D2055&atid=3D302055 As discussed previously on this list, I now use pango and cairo for the=20 drawing code. I have begun in this version to separate wxWidgets and=20 cairo/pango codes, so that they can be treated specifically. Indeed, as=20 cairo is designed to fully support ps, pdf, png, etc. in future=20 releases, it can be interesting for gnuplot file terminals. Using pango helped me to handle text layouts properly. I am pretty happy=20 with alignment, even in enhanced text mode. I have implemented text=20 encoding and now you can also use 'set term wxt...' to set your font=20 name and size, as with most other terminals. There's a caveat unfortunately : pango is based on unicode, and thus=20 won't use fonts that have a mapping different from unicode. It is the=20 case of the Symbol font, where for example the character code 0x41 gives=20 'alpha' whereas unicode mapping asks for a 'a'. For the Symbol font=20 especially, I have implemented a translation step from the Symbol=20 character to its unicode counterpart with the help of the following page = : http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/SYMBOL.TXT I hope this solution will be good enough. This version compiles under Windows with makefile.mgw Since the first announce of a working code under Windows, I have managed=20 to get mouse interactivity. Compared to the default Windows terminal,=20 the wxWidgets terminal provides enhanced text mode, multiple plot=20 windows, and antialiased lines. Yau can get a binary here : http://tipote.free.fr/wgnuplot-wxt-20051210.zip Here are screenshots : http://tipote.free.fr/wxt-windows3.png (under Windows) http://tipote.free.fr/wxt15.png (under Linux) [Today I have problems to reach this files. It must be a temporary=20 problem of free.fr] Please note that the patch no longer modifies any of gnuplot files,=20 apart from term.h to add the terminal, readline.c to add mouse support=20 under Windows, configure.in and makefile.mgw to make it compile, so it=20 consider it safe regarding other gnuplot functionnalities. I now look forward for your advice. Do you think this patch has some=20 future or should I forget it to come back to my physics' courses ? What=20 can I do to get this included in gnuplot CVS one day ? What do you think=20 of cairo as an alternative to libgd, libpdf and no-postscript-lib-at-all = ? Best regards, Timoth=E9e Lecomte |