On 2007-07-16 10:24-0400 [EMAIL PROTECTED] wrote: > Thanks Alan, it was clearly a problem of fonts.
You are welcome, and I am glad you are now able to obtain access to TrueType fonts with -dev png. > My administrator has re-compiled the library and now > I have access to nice TrueTypeFonts. > > Pratically, the environment variables PLPLOT_FREETYPE_* > are set to ttf fonts (see below) but now, I can't find the same table > of symbols (output of example x06, using plpoin) > than I've accessed to with the Hershey fonts. > > Does anyone know which TrueType font is used by plpoin ? > (it seems that "Symbol" is not the right one...) > PLPLOT_FREETYPE_SYMBOL_BOLD_FONT=symbol.ttf > PLPLOT_FREETYPE_SYMBOL_BOLD_ITALIC_FONT=symbol.ttf > PLPLOT_FREETYPE_SYMBOL_BOLD_OBLIQUE_FONT=symbol.ttf > PLPLOT_FREETYPE_SYMBOL_FONT=symbol.ttf > PLPLOT_FREETYPE_SYMBOL_ITALIC_FONT=symbol.ttf > PLPLOT_FREETYPE_SYMBOL_OBLIQUE_FONT=symbol.ttf To make some general remarks first, let me say its our dream to make TrueType font handling a lot easier and more automatic for the GD-related devices by using the fontconfig library. Thus, some day the extremely specific TrueType font stuff you have to do with -dev png will hopefully be a thing of the past. Also note example 6 was designed in the 90's to show off some of the strange symbols in the Hershey fonts which were our sole fonts at that time. Internally in our code we have a table to transform from Hershey font numbers to unicode numbers. Some of those entries are empty because we have not been able to find any unicode equivalent of some of the strange Hershey symbols which is why some of the symbols of example 6 are represented as boxes (no glyph known) even in our best demonstration (http://plplot.sourceforge.net/examples/demo06.php). Now to deal with the specifics of your question, our best demonstration of examples 6 and 7 (and also example 23 at http://plplot.sourceforge.net/examples/demo23.php which shows a subset of the large number of unicode mathematical symbol possibilities that are accessible with TrueType fonts) was done with the Debian ttf-freefont package which is described as follows: Description: Freefont Serif, Sans and Mono Truetype fonts A set of free high-quality TrueType fonts covering the UCS character set. These fonts are similar to the (in)famous Helvetica, Times and Courier fonts. For those fonts, we can simply use the default TTF font assignments which are equivalent (see cmake/modules/freetype.cmake for this information) to PLPLOT_FREETYPE_FONT_DIR=/usr/share/fonts/truetype/freefont PLPLOT_FREETYPE_SYMBOL_BOLD_FONT=FreeSerifBold.ttf PLPLOT_FREETYPE_SYMBOL_BOLD_ITALIC_FONT=FreeSerifBoldItalic.ttf PLPLOT_FREETYPE_SYMBOL_BOLD_OBLIQUE_FONT=FreeSerifBoldItalic.ttf PLPLOT_FREETYPE_SYMBOL_FONT=FreeSerif.ttf PLPLOT_FREETYPE_SYMBOL_ITALIC_FONT=FreeSerifItalic.ttf PLPLOT_FREETYPE_SYMBOL_OBLIQUE_FONT=FreeSerifItalic.ttf Once you have ttf-freefont installed, I think you will be quite happy with the glyph coverage you get for examples 6, 7, and 23 with -dev png. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general