CVS update: php3/functions
| From: | jah | Date: | Mon, 24 May 1999 15:21:46 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5939@lists.php.net to get a copy of this message | ||
Date: Monday May 24, 1999 @ 11:21
Author: jah
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv24392/functions
Modified Files:
gd.c
Log Message:
Added proto's.
Index: php3/functions/gd.c
diff -u php3/functions/gd.c:1.110 php3/functions/gd.c:1.111
--- php3/functions/gd.c:1.110 Mon May 24 09:58:25 1999
+++ php3/functions/gd.c Mon May 24 11:21:46 1999
@@ -29,7 +29,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.110 1999/05/24 13:58:25 jah Exp $ */
+/* $Id: gd.c,v 1.111 1999/05/24 15:21:46 jah Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -1824,6 +1824,8 @@
efree(f_ind);
}
+/* {{{ proto int imagepsloadfont(string pathname)
+Load a new font from specified file */
void php3_imagepsloadfont(INTERNAL_FUNCTION_PARAMETERS) {
pval *file;
int *f_ind, l_ind;
@@ -1859,7 +1861,10 @@
l_ind = php3_list_insert(f_ind, GD_GLOBAL(le_ps_font));
RETURN_LONG(l_ind);
}
+/* }}} */
+/* {{{ proto int imagepscopyfont(int font_index)
+Make a copy of a font for purposes like extending or reenconding */
void php3_imagepscopyfont(INTERNAL_FUNCTION_PARAMETERS) {
pval *fnt;
int *nf_ind, *of_ind, l_ind, type;
@@ -1904,7 +1909,10 @@
l_ind = php3_list_insert(nf_ind, GD_GLOBAL(le_ps_font));
RETURN_LONG(l_ind);
}
+/* }}} */
+/* {{{ proto bool imagepsfreefont(int font_index)
+Free memory used by a font */
void php3_imagepsfreefont(INTERNAL_FUNCTION_PARAMETERS) {
pval *fnt;
int type;
@@ -1925,7 +1933,10 @@
php3_list_delete(fnt->value.lval);
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto bool imagepsextendfont(int font_index, double extend)
+Extend or or condense (if extend < 1) a font */
void php3_imagepsextendfont(INTERNAL_FUNCTION_PARAMETERS) {
pval *fnt, *ext;
int type, *f_ind;
@@ -1947,7 +1958,10 @@
if (T1_ExtendFont(*f_ind, ext->value.dval) != 0) RETURN_FALSE;
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto bool imagepsslantfont(int font_index, double slant)
+Slant a font */
void php3_imagepsslantfont(INTERNAL_FUNCTION_PARAMETERS) {
pval *fnt, *slt;
int type, *f_ind;
@@ -1969,7 +1983,10 @@
if (T1_SlantFont(*f_ind, slt->value.dval) != 0) RETURN_FALSE;
RETURN_TRUE;
}
+/* }}} */
+/* {{{ proto array imagepstext([in flux...])
+Rasterize a string over an image */
void php3_imagepstext(INTERNAL_FUNCTION_PARAMETERS) {
pval *img, *str, *fnt, *sz, *fg, *bg, *sp, *px, *py;
int i, j, x, y;
@@ -2090,7 +2107,10 @@
add_next_index_long(return_value, str_img->metrics.rightSideBearing);
add_next_index_long(return_value, str_img->metrics.ascent);
}
+/* }}} */
+/* {{{ proto array imagepsbbox([in flux...])
+Return the bounding box needed by a string if rasterized */
void php3_imagepsbbox(INTERNAL_FUNCTION_PARAMETERS) {
pval *str, *fnt, *sz, *sp;
int space, type, *f_ind;
@@ -2140,6 +2160,7 @@
add_next_index_long(return_value, (int) ceil(((double) str_bbox.urx)/1000*sz->value.lval));
add_next_index_long(return_value, (int) ceil(((double) str_bbox.ury)/1000*sz->value.lval));
}
+/* }}} */
#endif /* HAVE_LIBT1 */
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net