Text Not Displaying Correctly With PHP:GD


Posted on 16th Feb 2014 07:03 pm by admin

I recently moved servers and since then I have noticed that one line of text is showing weirdly.

I have attached an example image that was generated. In the word 'Managing' the letters M & N are being distorted.

Did you know?Explore Trending and Topic pages for more stories like this.
The bit of code that creates that line of text is...

$silk = 'fonts/slkscr.ttf';
$grey = imagecolorallocate($im, 49, 51, 61);
imagefttext($im, 6, 0, 73, 25, $grey, $silk, 'Managing');
No comments posted yet

Your Answer:

Login to answer
187 Like 34 Dislike
Previous forums Next forums
Other forums

array_diff weirdness
I'm using the following bit of code

$diff = array_diff($pids, $pidlist);
$diff = array_va

MVC - Code review
I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to impl

Needing Youtube thumb nail fix.
I have a script on a site that pulls in you-tube videos,
The problem is, that the thumb nails for

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

=> and <=
So I was digging through some code when I came across the <= operator. This is the first tim

user administration
Dear @all,

what I have to do to set the user defaults for new users. At the moment I woul

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

values in array being escaped
I would like to submit some values - back to the same form for checking before processing...

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash