Lines Matching refs:font

220 	gdFontPtr font;  member
239 obj->font = NULL; in php_gd_font_object_create()
251 if (obj->font) { in php_gd_font_object_free()
252 if (obj->font->data) { in php_gd_font_object_free()
253 efree(obj->font->data); in php_gd_font_object_free()
255 efree(obj->font); in php_gd_font_object_free()
256 obj->font = NULL; in php_gd_font_object_free()
533 gdFontPtr font; in PHP_FUNCTION() local
557 font = (gdFontPtr) emalloc(sizeof(gdFont)); in PHP_FUNCTION()
559 while (b < hdr_size && (n = php_stream_read(stream, (char*)&font[b], hdr_size - b)) > 0) { in PHP_FUNCTION()
564 efree(font); in PHP_FUNCTION()
578 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
580 efree(font); in PHP_FUNCTION()
585 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
587 font->w = FLIPWORD(font->w); in PHP_FUNCTION()
588 font->h = FLIPWORD(font->h); in PHP_FUNCTION()
589 font->nchars = FLIPWORD(font->nchars); in PHP_FUNCTION()
590 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
592 efree(font); in PHP_FUNCTION()
596 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
601 efree(font); in PHP_FUNCTION()
607 font->data = emalloc(body_size); in PHP_FUNCTION()
609 while (b < body_size && (n = php_stream_read(stream, &font->data[b], body_size - b)) > 0) { in PHP_FUNCTION()
614 efree(font->data); in PHP_FUNCTION()
615 efree(font); in PHP_FUNCTION()
627 php_gd_font_object_from_zend_object(Z_OBJ_P(return_value))->font = font; in PHP_FUNCTION()
2900 return php_gd_font_object_from_zend_object(font_obj)->font; in php_find_gd_font()
2923 gdFontPtr font; in php_imagefontsize() local
2929 font = php_find_gd_font(font_obj, font_int); in php_imagefontsize()
2930 RETURN_LONG(arg ? font->h : font->w); in php_imagefontsize()
3014 gdFontPtr font = php_find_gd_font(font_obj, font_int); in php_imagechar() local
3018 gdImageChar(im, font, x, y, ch, col); in php_imagechar()
3021 php_gdimagecharup(im, font, x, y, ch, col); in php_imagechar()
3025 gdImageChar(im, font, x, y, (int) ((unsigned char) str[i]), col); in php_imagechar()
3026 x += font->w; in php_imagechar()
3032 gdImageCharUp(im, font, x, y, (int) str[i], col); in php_imagechar()
3033 y -= font->w; in php_imagechar()