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,8 +2754,14 @@ 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