CVS update: php3/functions

From: Date: Mon, 24 May 1999 22:24:39 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5959@lists.php.net to get a copy of this message
Date: Monday May 24, 1999 @ 18:24 Author: jah Update of /repository/php3/functions In directory php:/tmp/cvs-serv9762/functions Modified Files: gd.c php3_gd.h Log Message: Some further work on Postscript functions and started documenting them. Index: php3/functions/gd.c diff -u php3/functions/gd.c:1.111 php3/functions/gd.c:1.112 --- php3/functions/gd.c:1.111 Mon May 24 11:21:46 1999 +++ php3/functions/gd.c Mon May 24 18:24:39 1999 @@ -29,7 +29,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.111 1999/05/24 15:21:46 jah Exp $ */ +/* $Id: gd.c,v 1.112 1999/05/24 22:24:39 jah Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -158,6 +158,7 @@ {"imagepsloadfont", php3_imagepsloadfont, NULL}, {"imagepsfreefont", php3_imagepsfreefont, NULL}, {"imagepscopyfont", php3_imagepscopyfont, NULL}, + {"imagepsencodefont", php3_imagepsencodefont, NULL}, {"imagepsextendfont", php3_imagepsextendfont, NULL}, {"imagepsslantfont", php3_imagepsslantfont, NULL}, {"imagepsbbox", php3_imagepsbbox, NULL}, @@ -1931,6 +1932,30 @@ } php3_list_delete(fnt->value.lval); + RETURN_TRUE; +} +/* }}} */ + +/* {{{ proto bool imagepsencodefont(int font_index, ? encodingvector) +To change a fonts character encoding vector */ +void php3_imagepsencodefont(INTERNAL_FUNCTION_PARAMETERS) { + pval *fnt, *enc; + int type, *f_ind; + + if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &fnt, &enc) == FAILURE) { + WRONG_PARAM_COUNT; + } + + convert_to_long(fnt); + + f_ind = php3_list_find(fnt->value.lval, &type); + + if (type != GD_GLOBAL(le_ps_font)) { + php3_error(E_WARNING, "%d is not a Type 1 font index", fnt->value.lval); + RETURN_FALSE; + } + + /* Yet to be implemented... */ RETURN_TRUE; } /* }}} */ Index: php3/functions/php3_gd.h diff -u php3/functions/php3_gd.h:1.28 php3/functions/php3_gd.h:1.29 --- php3/functions/php3_gd.h:1.28 Mon May 24 09:58:25 1999 +++ php3/functions/php3_gd.h Mon May 24 18:24:39 1999 @@ -29,7 +29,7 @@ */ -/* $Id: php3_gd.h,v 1.28 1999/05/24 13:58:25 jah Exp $ */ +/* $Id: php3_gd.h,v 1.29 1999/05/24 22:24:39 jah Exp $ */ #ifndef _PHP3_GD_H #define _PHP3_GD_H @@ -98,6 +98,7 @@ extern void php3_imagepsfreefont(INTERNAL_FUNCTION_PARAMETERS); extern void _php3_free_ps_font(int *); extern void php3_imagepscopyfont(INTERNAL_FUNCTION_PARAMETERS); +extern void php3_imagepsencodefont(INTERNAL_FUNCTION_PARAMETERS); extern void php3_imagepsextendfont(INTERNAL_FUNCTION_PARAMETERS); extern void php3_imagepsslantfont(INTERNAL_FUNCTION_PARAMETERS); extern void php3_imagepsbbox(INTERNAL_FUNCTION_PARAMETERS); -- 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

« previous php.dev (#5959) next »