1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 01:53:36 +02:00

Make gdttf.c work with virtual dir support.

This commit is contained in:
Andrei Zmievski
2000-06-12 19:13:21 +00:00
parent 02c42362ff
commit 5d51452545

View File

@@ -332,8 +332,15 @@ fontFetch ( char **error, void *key )
short platform, encoding;
a = (font_t *)malloc(sizeof(font_t));
#ifdef VIRTUAL_DIR
if (virtual_filepath(b->fontname, &a->fontname)) {
*error = "Could not find/open font";
return NULL;
}
#else
a->fontname = (char *)malloc(strlen(b->fontname) + 1);
strcpy(a->fontname,b->fontname);
#endif
a->ptsize = b->ptsize;
a->angle = b->angle;
a->sin_a = sin(a->angle);