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?

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

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
Thanks for the response. Here's the relevant bit: $fontcolour = imagecolorallocatefromhex($i,$tcolor); $font2colour = imagecolorallocatefromhex($i, $t2color); $bg = imagecolorallocatefromhex($i,$bcolor); if($bcolor == '#00') $bg = imagecolorallocate($i, 0, 0, 0); if($tcolor == '#

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 perfectly, except that on > these

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

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

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

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 support on php

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

RE: [PHP] imagettftext question

2002-05-28 Thread Leotta, Natalie (NCI/IMS)
To change your Image color use ImageFill: ImageFill($im,$gifwidth,$gifheight,ImageColorAllocate($im,235,235,235)); Then, in your ImageTTFText, you can set the font: ImageTTFText($im, 11, 0, 20, (540-20),-$black,"../fonts/arial.ttf", "Source: SEER 12 Program"); I recommend using -$fontc

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] ImageTTFT

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