Hello !
Here is my problem :
I had some php scripts which worked well with php 4.0.5 (GD 1.6.2
according to phpinfo() ) and i put them on a new server with php 4.4.2
(and GD 2.0.28). Now, they don't do what they should :
i'm generating an image with text written with an angle : imagettftext
used
on the new server, the text has the good angle, but letters inside the
text are rotated with double this angle : for instance, with an angle
of 90 degrees, the text is written bottom to top (like it should), but
letters are rotated with a 180° angle
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet
In the worst case, i'll probably do my own function to write the text
letter by letter, but i prefered posting here before
Thanks
PS : btw, it seems imagettfbbox gives the rectangle that would be used
on a rotated text without this problem, so it may come from
imagettftext 3 2855
"Doraj" <do****@gmail.comwrote in message
news:11*********************@v45g2000cwv.googlegro ups.com...
Hello !
>
Here is my problem :
I had some php scripts which worked well with php 4.0.5 (GD 1.6.2
according to phpinfo() ) and i put them on a new server with php 4.4.2
(and GD 2.0.28). Now, they don't do what they should :
i'm generating an image with text written with an angle : imagettftext
used
on the new server, the text has the good angle, but letters inside the
text are rotated with double this angle : for instance, with an angle
of 90 degrees, the text is written bottom to top (like it should), but
letters are rotated with a 180° angle
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet
It seems that this bug: http://bugs.php.net/bug.php?id=25398
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet
It seems that this bug: http://bugs.php.net/bug.php?id=25398
indeed, seems like it, thanks a lot
On Thu, 01 Feb 2007 05:52:29 -0800, Doraj <do****@gmail.comwrote:
>
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet
It seems that this bug: http://bugs.php.net/bug.php?id=25398
indeed, seems like it, thanks a lot
Does imagefttext (FreeType 2) have the same problem? If your server's
installation supports this function, give it a try. :-)
Good luck
--
Curtis, http://dyersweb.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bof |
last post by:
I'm attempting to use ImageTTFText to render text to an image, I can get
it to work if I
a) specify the full font path
b) switch off anti-aliasing
c) specify an OpenType font (e.g. arial.ttf)
...
|
by: John Wellesz |
last post by:
Hi,
since I've upgraded to php 4.3.4 (before I used 4.1.2) I have a problem
with imagettftext():
when executing the line:
imagettftext($im, 20, 0, 10, 25, $white, "$script_dir/verdana.ttf",...
|
by: Leif Wessman |
last post by:
From: http://www.php.net/manual/en/function.imagettftext.php
"color is the color index. Using the negative of a color index has the
effect of turning off antialiasing."
I'm using a bundled...
|
by: Axier |
last post by:
I cannot get the swedish character set on images. What can be wrong?
I would very much appreciate help.
regards, axier
I can supply some code here and a link:...
|
by: ljb |
last post by:
Using PHP-4.3.11 with GD extension, bundled GD library, and freetype-2.1.9
(with X.org 6.8.1). I can't get the TrueType Font (TTF) bounding box to
come out right. Whether using imagettftext() or...
|
by: Gordan |
last post by:
Im using imagettftext to write some text on my image. I'm on Win XP and using
the plain arial.ttf font that I copied from win dir
my typical line would be
imagettftext($im, 33, 0, 20, 500, $black,...
|
by: franscescomoi |
last post by:
Hi.
On PHP 4.3.10 on Linux I try to:
------
$im = imagecreate(400, 30);
$black = imagecolorallocate($im, 0, 0, 0);
imagettftext($image, 20, -3, 10, 20, $black, 'Arial.ttf', 'Test');
-------
...
|
by: Jean-Francois Brault |
last post by:
I wrote a crappy class for radian angle management. The class consists
of an array of radian values. I put all these things in a class in
which all methods are static, so I can access it anywhere...
|
by: monomaniac21 |
last post by:
My url is www.aptitudehack.com
Hi i cant get an image to display on another server though it does on
mine. Here is the code for the page. The problem i think is the
imagettftext function...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |