Date: 04/21/98
- Next message: max <email protected>: "[PHP-DEV] Bug #293: cannot found httpd.h but it is there"
- Previous message: ssb: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: cmv <email protected>
Operating system: Linux 2.0.27 Slackware
PHP version: 3.0 Latest CVS
PHP Bug Type: Performance problem
Bug description:
Example: http://www.shmooze.net/dropcap.php3
Source: http://www.shmooze.net/dropcap.phps
1) The x,y coordinates are reversed - the text actually starts at (200,100)
2) The starting coordinate (ie. x,y) is the base-point for the first letter
in the text, ie., the bottom left of the letter. In the example above, the
base point of the letter "T" is actually not inside the glyph. And the
base-point for the letter "y" is above the descender. [This is all okay,
but may be counter-intuitive to some people who expect the coordinate to
define the upper-left point of the first character. If someone every
builds bounding-box capabilities into this, it will be much more useful! ;) ]
3) The angle currently goes as follows:
180
|
90 --+-- 270 This should probably be rotated 90 degrees CCW
|
0
4) The text is mirror imaged. If I add 180 to my angle, the text just
rotates 180 degrees (as it should). It doesn't "flip" the text.
5) In addition to fixing the mirroring proble, perhaps there should be an (optional) argument to ImageTTFText that determines the "flip" of the text:
0 -> no flip
1 -> horizontal flip
2 -> vertical flip
3 -> both hor. and vert. flip (equivalent to 180 rotation)
6) The current usage seems to be:
ImageTTFText(im, size, angle_in_radians, y, x, fontfile, text);
I propose:
ImageTTFText(im, size, x, y, fontfile, text [, angle_in_degrees] [, flip] );
I have solved #3 above, and am working on the others. But I do need other people to look at this - I have no C experience, and no familiarity with the PHP code!
- Next message: max <email protected>: "[PHP-DEV] Bug #293: cannot found httpd.h but it is there"
- Previous message: ssb: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

