Lines Matching refs:font

624 	ZEND_ARG_INFO(0, font)
628 ZEND_ARG_INFO(0, font)
633 ZEND_ARG_INFO(0, font)
642 ZEND_ARG_INFO(0, font)
651 ZEND_ARG_INFO(0, font)
660 ZEND_ARG_INFO(0, font)
1431 gdFontPtr font; in PHP_FUNCTION() local
1455 font = (gdFontPtr) emalloc(sizeof(gdFont)); in PHP_FUNCTION()
1457 while (b < hdr_size && (n = php_stream_read(stream, (char*)&font[b], hdr_size - b)) > 0) { in PHP_FUNCTION()
1462 efree(font); in PHP_FUNCTION()
1476 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
1478 efree(font); in PHP_FUNCTION()
1483 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
1485 font->w = FLIPWORD(font->w); in PHP_FUNCTION()
1486 font->h = FLIPWORD(font->h); in PHP_FUNCTION()
1487 font->nchars = FLIPWORD(font->nchars); in PHP_FUNCTION()
1488 if (overflow2(font->nchars, font->h) || overflow2(font->nchars * font->h, font->w )) { in PHP_FUNCTION()
1490 efree(font); in PHP_FUNCTION()
1494 body_size = font->w * font->h * font->nchars; in PHP_FUNCTION()
1499 efree(font); in PHP_FUNCTION()
1505 font->data = emalloc(body_size); in PHP_FUNCTION()
1507 while (b < body_size && (n = php_stream_read(stream, &font->data[b], body_size - b)) > 0) { in PHP_FUNCTION()
1512 efree(font->data); in PHP_FUNCTION()
1513 efree(font); in PHP_FUNCTION()
1524 ind = zend_list_insert(font, le_gd_font); in PHP_FUNCTION()
3601 gdFontPtr font; in php_find_gd_font() local
3605 font = gdFontTiny; in php_find_gd_font()
3608 font = gdFontSmall; in php_find_gd_font()
3611 font = gdFontMediumBold; in php_find_gd_font()
3614 font = gdFontLarge; in php_find_gd_font()
3617 font = gdFontGiant; in php_find_gd_font()
3623 font = gdFontTiny; in php_find_gd_font()
3625 font = gdFontGiant; in php_find_gd_font()
3628 font = (gdFontPtr)Z_RES_P(zv)->ptr; in php_find_gd_font()
3634 return font; in php_find_gd_font()
3645 gdFontPtr font; in php_imagefontsize() local
3651 font = php_find_gd_font(SIZE); in php_imagefontsize()
3652 RETURN_LONG(arg ? font->h : font->w); in php_imagefontsize()
3713 gdFontPtr font; in php_imagechar() local
3736 font = php_find_gd_font(size); in php_imagechar()
3740 gdImageChar(im, font, x, y, ch, col); in php_imagechar()
3743 php_gdimagecharup(im, font, x, y, ch, col); in php_imagechar()
3747 gdImageChar(im, font, x, y, (int) ((unsigned char) str[i]), col); in php_imagechar()
3748 x += font->w; in php_imagechar()
3754 gdImageCharUp(im, font, x, y, (int) str[i], col); in php_imagechar()
3755 y -= font->w; in php_imagechar()