In those cases simply setting the three default paths to fonts doesn't suffice anyway. ![]() I can still imagine that users put fonts to exotic places and change fontconfig's configuration. But anyway, Ethan's patch might be worth exploring even if this particular issue with "arial not found" goes away. I remember that I saw it working earlier and I have no idea why it still complains. Gd2 (active) platform='darwin 11' archs='x86_64'īut as I said, I need more extensive checking/research. Gnuplot (active) platform='darwin 11' archs='x86_64' Else we need to figure out what exactly is needed to avoid the problem that the patch was trying to solve in the first place. If it is needed and if it is the right way to specify font paths without recursive search, it should be included upstream. ![]() I would also like to understand better the exact consequences of patch r76048. But I would like to do some additional testing with both PostScript and GD (png) terminals before committing anything. Since MacPorts now has the necessary patch in gd2 ( r92005), we could fix gnuplot in MacPorts before the patch is included in gnuplot upstream. Web tools, for example, which provide private font files. It means that gnuplot scripts using a mixture of self-supplied fonts andįontconfig-installed fonts will fail. Once you turn it on you can never turn it off again. There seem to be bugs in the libgd function gdFTUseFontConfig(), in that * If we still haven't found the font, punt to the internal non-TTF default set */įprintf(stderr,"%s when opening font \"%s\", using internal non-scalable font\n",īut doesn't want to include it into Gnuplot until GD 2.0.36 with a fix (see #26897) gets released. * If that didn't work, try again using fontconfig mechanism */įprintf(stderr,"fontconfig %s font %s\n", Png_state.ttffont, (double)png_fault_ttfsize, * First try the old GDFONTPATH mechanism for locating fonts */Įrr = gdImageStringFT(NULL, &brect, 0, Gnuplot's "show fontpath" sometimes reports font path inside /usr/X11R6/ only.Įthan Merritt suggested the following patch (see ): That might (to some extent) avoid the need to patch gd2 with DEFAULT_FONTPATH, see #26897, even though I'm not sure if gnuplot is the only program that has problems with GD's "bad defaults". SetEnvironmentVariable("GDFONTPATH", gdfontpath) Gp_alloc(strlen(windir) + strlen(fonts) + 1, "GDFONTPATH") * Set the default search path for fonts to something useful. Gnuplot uses the following trick on Windows (and could do something similar on Mac OS X I'm not sure if it is the right way to do that or if it is better to make sure that fontconfig works properly): ![]() (I plan to look into the issue and do some more extensive tests, I would only like to collect all the problems & pointers at a single place and make sure that I don't forget about it. When running gnuplot with png terminal, it still reports problems:Ĭould not find/open font when opening font "arial", using internal non-scalable font
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |