Lines Matching refs:font

224 	gdFontPtr font;  member
243 obj->font = NULL; in php_gd_font_object_create()
255 if (obj->font) { in php_gd_font_object_free()
256 if (obj->font->data) { in php_gd_font_object_free()
257 efree(obj->font->data); in php_gd_font_object_free()
259 efree(obj->font); in php_gd_font_object_free()
260 obj->font = NULL; in php_gd_font_object_free()
539 gdFontPtr font; in PHP_FUNCTION() local
563 font = (gdFontPtr) emalloc(sizeof(gdFont)); in PHP_FUNCTION()
565 while (b < hdr_size && (n = php_stream_read(stream, (char*)&font[b], hdr_size - b)) > 0) { in PHP_FUNCTION()
570 efree(font); in PHP_FUNCTION()
584 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
586 efree(font); in PHP_FUNCTION()
591 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
593 font->w = FLIPWORD(font->w); in PHP_FUNCTION()
594 font->h = FLIPWORD(font->h); in PHP_FUNCTION()
595 font->nchars = FLIPWORD(font->nchars); in PHP_FUNCTION()
596 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
598 efree(font); in PHP_FUNCTION()
602 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
607 efree(font); in PHP_FUNCTION()
613 font->data = emalloc(body_size); in PHP_FUNCTION()
615 while (b < body_size && (n = php_stream_read(stream, &font->data[b], body_size - b)) > 0) { in PHP_FUNCTION()
620 efree(font->data); in PHP_FUNCTION()
621 efree(font); in PHP_FUNCTION()
633 php_gd_font_object_from_zend_object(Z_OBJ_P(return_value))->font = font; in PHP_FUNCTION()
2659 return php_gd_font_object_from_zend_object(font_obj)->font; in php_find_gd_font()
2682 gdFontPtr font; in php_imagefontsize() local
2688 font = php_find_gd_font(font_obj, font_int); in php_imagefontsize()
2689 RETURN_LONG(arg ? font->h : font->w); in php_imagefontsize()
2774 gdFontPtr font = php_find_gd_font(font_obj, font_int); in php_imagechar() local
2778 gdImageChar(im, font, x, y, ch, col); in php_imagechar()
2781 php_gdimagecharup(im, font, x, y, ch, col); in php_imagechar()
2785 gdImageChar(im, font, x, y, (int) ((unsigned char) str[i]), col); in php_imagechar()
2786 x += font->w; in php_imagechar()
2792 gdImageCharUp(im, font, x, y, (int) str[i], col); in php_imagechar()
2793 y -= font->w; in php_imagechar()