1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00

fix font handling in vdir mode

This commit is contained in:
Daniel Beulshausen
2001-07-20 11:25:13 +00:00
parent 4ebcdd9929
commit aa032e2e4c

View File

@@ -2754,9 +2754,15 @@ void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int extende
str = (unsigned char *) Z_STRVAL_PP(C);
l = strlen(str);
fontname = (unsigned char *) Z_STRVAL_PP(FONTNAME);
#ifdef VIRTUAL_DIR
if(virtual_filepath(Z_STRVAL_PP(FONTNAME), &fontname)) {
fontname = (unsigned char*)Z_STRVAL_PP(FONTNAME);
}
#else
fontname = (unsigned char*)Z_STRVAL_PP(FONTNAME);
#endif
#ifdef USE_GD_IMGSTRTTF
# if HAVE_LIBFREETYPE