Lines Matching refs:font
632 gdFontPtr font; in PHP_FUNCTION() local
656 font = (gdFontPtr) emalloc(sizeof(gdFont)); in PHP_FUNCTION()
658 while (b < hdr_size && (n = php_stream_read(stream, (char*)&font[b], hdr_size - b)) > 0) { in PHP_FUNCTION()
663 efree(font); in PHP_FUNCTION()
677 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
679 efree(font); in PHP_FUNCTION()
684 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
686 font->w = FLIPWORD(font->w); in PHP_FUNCTION()
687 font->h = FLIPWORD(font->h); in PHP_FUNCTION()
688 font->nchars = FLIPWORD(font->nchars); in PHP_FUNCTION()
689 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
691 efree(font); in PHP_FUNCTION()
695 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
700 efree(font); in PHP_FUNCTION()
706 font->data = emalloc(body_size); in PHP_FUNCTION()
708 while (b < body_size && (n = php_stream_read(stream, &font->data[b], body_size - b)) > 0) { in PHP_FUNCTION()
713 efree(font->data); in PHP_FUNCTION()
714 efree(font); in PHP_FUNCTION()
725 ind = zend_list_insert(font, le_gd_font); in PHP_FUNCTION()
2725 gdFontPtr font; in php_find_gd_font() local
2729 font = gdFontTiny; in php_find_gd_font()
2732 font = gdFontSmall; in php_find_gd_font()
2735 font = gdFontMediumBold; in php_find_gd_font()
2738 font = gdFontLarge; in php_find_gd_font()
2741 font = gdFontGiant; in php_find_gd_font()
2747 font = gdFontTiny; in php_find_gd_font()
2749 font = gdFontGiant; in php_find_gd_font()
2752 font = (gdFontPtr)Z_RES_P(zv)->ptr; in php_find_gd_font()
2758 return font; in php_find_gd_font()
2769 gdFontPtr font; in php_imagefontsize() local
2775 font = php_find_gd_font(SIZE); in php_imagefontsize()
2776 RETURN_LONG(arg ? font->h : font->w); in php_imagefontsize()
2835 gdFontPtr font; in php_imagechar() local
2856 font = php_find_gd_font(size); in php_imagechar()
2860 gdImageChar(im, font, x, y, ch, col); in php_imagechar()
2863 php_gdimagecharup(im, font, x, y, ch, col); in php_imagechar()
2867 gdImageChar(im, font, x, y, (int) ((unsigned char) str[i]), col); in php_imagechar()
2868 x += font->w; in php_imagechar()
2874 gdImageCharUp(im, font, x, y, (int) str[i], col); in php_imagechar()
2875 y -= font->w; in php_imagechar()