Lines Matching refs:font
246 gdFontPtr font; member
265 obj->font = NULL; in php_gd_font_object_create()
277 if (obj->font) { in php_gd_font_object_free()
278 if (obj->font->data) { in php_gd_font_object_free()
279 efree(obj->font->data); in php_gd_font_object_free()
281 efree(obj->font); in php_gd_font_object_free()
282 obj->font = NULL; in php_gd_font_object_free()
689 gdFontPtr font; in PHP_FUNCTION() local
713 font = (gdFontPtr) emalloc(sizeof(gdFont)); in PHP_FUNCTION()
715 while (b < hdr_size && (n = php_stream_read(stream, (char*)&font[b], hdr_size - b)) > 0) { in PHP_FUNCTION()
720 efree(font); in PHP_FUNCTION()
734 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
736 efree(font); in PHP_FUNCTION()
741 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
743 font->w = FLIPWORD(font->w); in PHP_FUNCTION()
744 font->h = FLIPWORD(font->h); in PHP_FUNCTION()
745 font->nchars = FLIPWORD(font->nchars); in PHP_FUNCTION()
746 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
748 efree(font); in PHP_FUNCTION()
752 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
757 efree(font); in PHP_FUNCTION()
763 font->data = emalloc(body_size); in PHP_FUNCTION()
765 while (b < body_size && (n = php_stream_read(stream, &font->data[b], body_size - b)) > 0) { in PHP_FUNCTION()
770 efree(font->data); in PHP_FUNCTION()
771 efree(font); in PHP_FUNCTION()
783 php_gd_font_object_from_zend_object(Z_OBJ_P(return_value))->font = font; in PHP_FUNCTION()
2813 return php_gd_font_object_from_zend_object(font_obj)->font; in php_find_gd_font()
2836 gdFontPtr font; in php_imagefontsize() local
2842 font = php_find_gd_font(font_obj, font_int); in php_imagefontsize()
2843 RETURN_LONG(arg ? font->h : font->w); in php_imagefontsize()
2904 gdFontPtr font; in php_imagechar() local
2929 font = php_find_gd_font(font_obj, font_int); in php_imagechar()
2933 gdImageChar(im, font, x, y, ch, col); in php_imagechar()
2936 php_gdimagecharup(im, font, x, y, ch, col); in php_imagechar()
2940 gdImageChar(im, font, x, y, (int) ((unsigned char) str[i]), col); in php_imagechar()
2941 x += font->w; in php_imagechar()
2947 gdImageCharUp(im, font, x, y, (int) str[i], col); in php_imagechar()
2948 y -= font->w; in php_imagechar()