Re: [PHP] imagettftext Angle Problem

2010-08-19 Thread Bborie Park
If you're on 5.2 or 5.3, it may have to do with bug #51263. http://bugs.php.net/51263 Upgrade your php to the latest as fixes the problem. -bborie On 08/12/2010 10:08 AM, tedd wrote: Well, whatever the problem is it is definitely related only to my system. I tried your code and had the same

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread tedd
Well, whatever the problem is it is definitely related only to my system. I tried your code and had the same results (https://adexfulfillment.com/adex/tests/test.php). I tried different fonts as well. The fonts I'm using were exported from FontBook on my Mac. I wonder if that might have s

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
On Aug 12, 2010, at 12:17 PM, Ashley Sheridan wrote: > On Thu, 2010-08-12 at 12:14 -0400, Floyd Resler wrote: > >> On Aug 12, 2010, at 11:50 AM, tedd wrote: >> On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: > I'm trying to draw text at a 90 degree angle, reading from bott

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Ashley Sheridan
On Thu, 2010-08-12 at 12:14 -0400, Floyd Resler wrote: > On Aug 12, 2010, at 11:50 AM, tedd wrote: > > >> On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: > >> > >>> I'm trying to draw text at a 90 degree angle, reading from bottom to top. > >>> For some reason, all of the letters are al

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
On Aug 12, 2010, at 11:50 AM, tedd wrote: >> On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: >> >>> I'm trying to draw text at a 90 degree angle, reading from bottom to top. >>> For some reason, all of the letters are aligning to the top (i.e. the left >>> side) of the text. It looks

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread tedd
On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: I'm trying to draw text at a 90 degree angle, reading from bottom to top. For some reason, all of the letters are aligning to the top (i.e. the left side) of the text. It looks really odd! Has anyone else experienced this before? T

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
On Aug 12, 2010, at 10:42 AM, Ashley Sheridan wrote: > On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: > >> I'm trying to draw text at a 90 degree angle, reading from bottom to top. >> For some reason, all of the letters are aligning to the top (i.e. the left >> side) of the text. It

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread Ashley Sheridan
On Thu, 2010-08-12 at 10:40 -0400, Floyd Resler wrote: > I'm trying to draw text at a 90 degree angle, reading from bottom to top. > For some reason, all of the letters are aligning to the top (i.e. the left > side) of the text. It looks really odd! Has anyone else experienced this > before?

[PHP] imagettftext Angle Problem

2010-08-12 Thread Floyd Resler
I'm trying to draw text at a 90 degree angle, reading from bottom to top. For some reason, all of the letters are aligning to the top (i.e. the left side) of the text. It looks really odd! Has anyone else experienced this before? Thanks! Floyd -- PHP General Mailing List (http://www.php.net/

Re: [PHP] imagettftext() and East Asian Font rendering

2009-12-03 Thread Ashley Sheridan
On Thu, 2009-12-03 at 03:12 +0700, shiplu wrote: > Hello, > > I am creating an app where I have to show east asian text in image. > Those are utf8. Problem is when I try to display "কি হচ্ছে" in image, > it shows "ক ি হ চ ্ ছ ে" without the circles. > How do I show it correctly. > > Note: I am

[PHP] imagettftext() and East Asian Font rendering

2009-12-02 Thread shiplu
Hello, I am creating an app where I have to show east asian text in image. Those are utf8. Problem is when I try to display "কি হচ্ছে" in image, it shows "ক ি হ চ ্ ছ ে"  without the circles. How do I show it correctly. Note: I am generating image, not html file. -- A K M Mokaddim My talks, t

Re: [PHP] ImageTTFText leaves Black in letters

2008-06-26 Thread tedd
At 5:27 PM -0400 6/24/08, Stephen Pynenburg wrote: Hi all, I'm using imagettftext, and my script works perfectly, except that on these TTF fonts that I'm using, in any letter with a hole in the middle (letters like a, R, O) the hole is coloured black, not transparent. Is this a PHP thing, or do I

Re: [PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Stephen Pynenburg
27;]); imagefill($i, 0, 0, $bg); imagepng($i); Thanks, Stephen On Tue, Jun 24, 2008 at 5:32 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Stephen Pynenburg [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 24, 2008 4:27 PM > > To:

RE: [PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Stephen Pynenburg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 4:27 PM > To: php-general@lists.php.net > Subject: [PHP] ImageTTFText leaves Black in letters > > Hi all, > I'm using imagettftext, and my script works perf

[PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Stephen Pynenburg
Hi all, I'm using imagettftext, and my script works perfectly, except that on these TTF fonts that I'm using, in any letter with a hole in the middle (letters like a, R, O) the hole is coloured black, not transparent. Is this a PHP thing, or do I need to edit my fonts somehow? Thanks, Stephen

Re: [PHP] imagettftext and utf-8 (swedish characters)

2008-02-29 Thread David Sveningsson
Jochem Maas skrev: Jochem Maas schreef: have you tried a test script (file encoded as UTF8) where you hardcode the title string and see if that also outputs 'squares' ... at least that way you can be sure whether the problem is in some kind of encoding mush that occurs during the title's round

Re: [PHP] imagettftext and utf-8 (swedish characters)

2008-02-29 Thread Jochem Maas
Jochem Maas schreef: David Sveningsson schreef: Hi, I've ran into some problems when outputing text to an image using imagettftext. I cannot get swedish characters to work, I just get a square. I've tried different fonts which I know has those characters (bitstream vera, arial, times new roman

Re: [PHP] imagettftext and utf-8 (swedish characters)

2008-02-29 Thread Jochem Maas
David Sveningsson schreef: Hi, I've ran into some problems when outputing text to an image using imagettftext. I cannot get swedish characters to work, I just get a square. I've tried different fonts which I know has those characters (bitstream vera, arial, times new roman, etc). What am I doin

Re: [PHP] imagettftext and utf-8 (swedish characters)

2008-02-29 Thread Daniel Brown
On Thu, Feb 28, 2008 at 8:45 PM, David Sveningsson <[EMAIL PROTECTED]> wrote: > Hi, I've ran into some problems when outputing text to an image using > imagettftext. I cannot get swedish characters to work, I just get a > square. I've tried different fonts which I know has those characters > (bi

[PHP] imagettftext and utf-8 (swedish characters)

2008-02-28 Thread David Sveningsson
Hi, I've ran into some problems when outputing text to an image using imagettftext. I cannot get swedish characters to work, I just get a square. I've tried different fonts which I know has those characters (bitstream vera, arial, times new roman, etc). What am I doing wrong? I know I must pas

Re: [PHP] imagettftext, text values. How to add a new line? is it \n?

2006-01-24 Thread Richard Correia
hey, Check the properties at http://www.weberdev.com/Manuals/PHP/function.imagettftext.html You can try second imagettftext with new X and Y co-ordinates. Thanks Richard On 1/25/06, Louie Miranda <[EMAIL PROTECTED]> wrote: > > imagettftext($im, $size, 0, 2, 13, $text_color, > "includes/resource

[PHP] imagettftext color problem

2005-02-10 Thread Anni Hienola
Hello, I want to display TTF text in a png image. I use the following type of code: $font="luxisr"; $font_size=16; $img=imagecreate($width, $height); $bg=imagecolorallocate($img, 255, 255, 255); $font_color=imageallocatecolor($img, 0, 0, 0); imagettftext($img, $font_size, 0, $x, $y, $font_color,

Re: [PHP] imagettftext() question

2004-05-25 Thread Jason Wong
On Tuesday 25 May 2004 03:52, Mike Rotondo wrote: > I've written a script that displays a graph of some data from a text file. > Beneath each bar in the graph is a text label. I read the php.net > documentation and it seemed that imagettftext() was the easiest function to > get text in an image wi

[PHP] imagettftext() question

2004-05-24 Thread Mike Rotondo
I've written a script that displays a graph of some data from a text file. Beneath each bar in the graph is a text label. I read the php.net documentation and it seemed that imagettftext() was the easiest function to get text in an image with, so I used that. Here is the text-display code (syntax

RE: [PHP] ImageTTFText for mac? win? linux?

2003-07-13 Thread Ralph Guzman
http://www.codephobia.com/tutorials/view.php3?idnum=6 -Original Message- From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 12:04 AM To: '[EMAIL PROTECTED]' Subject: [PHP] ImageTTFText for mac? win? linux? Im confused.. I know I have TrueType

[PHP] ImageTTFText for mac? win? linux?

2003-07-13 Thread Miranda, Joel Louie M
Im confused.. I know I have TrueType support on php. Now I wonder where will I put my fonts into my server? Like verdana, etc just a sample. Does this means even macintosh truetype fonts I can also load in? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.p

[PHP] imagettftext - font size randomly changes

2003-06-06 Thread Doug Dossett
Hello all, I'm using the following code to create images on the fly on a web site for page headers. This works great for the most part, but a couple times now the text has started resizing for no apparent reason. The first time it was just slightly wider than normal. Most recently the text

[PHP] imagettftext and Anti-Aliasing

2003-05-30 Thread Jeff Maki
Hello Everyone: I have a quick question about libgd, ttf fonts, imagettftext and anti-aliasing -- I have two FreeBSD boxes, both running PHP 4.3. One anti-aliases the text very nicely, and the other does not. I cannot figure out why the images look so different on the two different boxes -- do

Re: [PHP] imagettftext function does not handle combining characterproperly

2002-09-18 Thread Ziying Sherwin
Rasmus, Thanks for the suggestion. We tried to compile php 4.2.2 with freetype 2.1.2 and gd 2.0.1, but during the configuration, we kept getting the following error messages: configure: error: Unable to find required gettext library And the following lines in config.log: configure:26000: gcc

Re: [PHP] imagettftext function does not handle combining characterproperly

2002-09-17 Thread Rasmus Lerdorf
That's done in Freetype. First thing I would try would be upgrading to GD2/Freetype2 and see if it is handled better with that combination. -Rasmus On Tue, 17 Sep 2002, Ziying Sherwin wrote: > > We installed php 4.2.2 with freetype 1.3.1 on our solaris 2.8 machine. We > are using function ima

[PHP] imagettftext function does not handle combining character properly

2002-09-17 Thread Ziying Sherwin
We installed php 4.2.2 with freetype 1.3.1 on our solaris 2.8 machine. We are using function imagettftext to convert UTF8 string to image file for Internet display. However, it seems that this function does not handle the combining characters properly. For instance, the sequence of unicode c

[PHP] ImageTTFText - absolute versus relative path names

2002-09-16 Thread thomas . emde
Hello, I have the problem that I get an error message "Could not find/open font" when I use the ImageTTFText function and use a relative path to specify the location of the font file. Absolute paths are working correctly. Using mod_perl 4.1.0, apache 1.3.23 and gdlib 1.8.4. I found a slight hint

[PHP] imagettftext, GD2, and Freetype

2002-07-26 Thread Sean Coates
Hello, I'm playing with imagettftext: http://sean.caedmon.net/ttf_example.php?text=PHP This works fine with some fonts, and not fine with others: http://sean.caedmon.net/ttf_example.php?text=PHP&font=a The (broken) font in question is available at: http://sean.caedmon.net/new/fonts/TRIACSEV.T

[PHP] imageTTFtext() doesn't work

2002-05-28 Thread Chris Sechiatano
Hello, I'm just playing around with the imageTTftext() function but it doesn't seem to be working. I can output an image, but when I use the text function, nothing is displayed, not even the image. This is running on a RHL 7.2 system with the following installed: php-4.0.6-7 gd-1.8.4-4 freetyp

RE: [PHP] imagettftext question

2002-05-28 Thread Leotta, Natalie (NCI/IMS)
Tuesday, May 28, 2002 10:59 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] imagettftext question In our application, we need to write a UTF8 strings to the image using True Type fonts. The php function that we are using is imagettftext. However, we have the two problems regarding

[PHP] imagettftext question

2002-05-28 Thread Ziying Sherwin
In our application, we need to write a UTF8 strings to the image using True Type fonts. The php function that we are using is imagettftext. However, we have the two problems regarding that function: 1. The images that are generated by this function is white fonts on the black background. B

RE: [PHP] ImageTTFText Problems...

2002-04-11 Thread Matthew Walker
Never mind. I managed to find a free code 39 barcode font that /is/ Unicode compatible, and it works. Matthew Walker Senior Software Engineer ePliant Marketing -Original Message- From: Matthew Walker Sent: Thursday, April 11, 2002 3:58 PM To: [EMAIL PROTECTED] Subject: [PHP

[PHP] ImageTTFText Problems...

2002-04-11 Thread Matthew Walker
I’m having no luck using ImageTTFText(). I have a .ttf barcode font that works fine on windows if I select it in a word processor, but when I try and use it with PHP to generate barcode images, it outputs a blank image. I can select other TTF fonts, and they work fine. Just this one seems to have

[PHP] ImageTTFtext Bug

2002-04-10 Thread The Walters
I finally found other people with the same problem I am having as addressed here: http://bugs.php.net/bug.php?id=14876 I am wondering when this will be addressed however because in the bug report it lists no solutions to this problem. Anyone? -Brandon -- PHP General Mailing List (http://

[PHP] ImageTTFText function does not work with freetype 2 on Solaris 2.8

2002-03-06 Thread Ziying Sherwin
We installed php 4.1.2 with gd 2.0.1 and freetype 2.0.5 library support on our Solaris 2.8 machine using gcc 2.95.2. However, the php function ImageTTFText() stopped to work properly with the new installation. No text generated in the image. When we tried to use cyberbit fonts to generate a UT

Re: [PHP] ImageTTFText()

2001-03-25 Thread David Robley
On Sun, 25 Mar 2001 08:52, Paulo Vinícius Vitto Ruthes wrote: > folks, > i installed php4 by a RPM, it wasn't compiled --enable-gd-imgstrttf , > so, when I use a function like > ImageTTFText(), it returns me the text mirrowed (inverted like a > mirror) and the angulation doesn't work right... > bu

[PHP] ImageTTFText()

2001-03-24 Thread Paulo Vinícius Vitto Ruthes
folks, i installed php4 by a RPM, it wasn't compiled --enable-gd-imgstrttf , so, when I use a function like ImageTTFText(), it returns me the text mirrowed (inverted like a mirror) and the angulation doesn't work right... but, when I try to compile the tar.gz php installation, it don't let me com

[PHP] ImageTTFText Error

2001-01-17 Thread Gabriele Fain
Hello, Did someone as experiences of crash when use ImageTTFText ? I have a Linux Mandrake 7.2 with Php 4.0.4 Thanks -- Gabriele Fain Fineware snc - Vendita computer, produzione software e Hardware EMail: mailto:[EMAIL PROTECTED] http://www.fineware.it Via Matteotti, 66 - 34071 Cormons (GO). T