Whether GDFONTPATH can be supported by php in winxp. If a problem occurs during php learning, use the GD library to plot and set the font path variable: putenv (GDFONTPATHc: windowsFonts); $ fontnamearial; $ bboximagettfbbox ($ font_size, 0, $ fontname, $
A problem occurs during php learning,
Use the GD library to plot and set the font path variable:
Putenv ('gdfontpath = c: \ windows \ fonts ');
$ Fontname = 'arial ';
$ Bbox = imagettfbbox ($ font_size, 0, $ fontname, $ button_text );
Tip:Cannot find the font file, but it is clearly in the Fonts folder. is the GDFONTPATH environment variable not supported by windows?
Many people have encountered this problem on the internet. Unfortunately, I have also encountered this problem. my test result is that it cannot be supported in windows.
What should we do? The problem should always be solved. well, what if we don't need this GDFONTPATH? Of course, it cannot be referenced, but what if we manually put the fonts we want to use in the project folder?
I just tried it. that's what I did. Although it is a bit difficult to win.
Drawing, use the GD library to plot and set the font path variable: putenv ('gdfontpath = c: \ windows \ fonts'); $ fontname = 'arial '; $ bbox = imagettfbbox ($ font_size, 0, $ fontname, $...