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

why isn't this PHP code working ???
it's suppose to find a name on the database.

<?php

$s = $_POST["lname&

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

Problem with HTML form
Hello,

I made a HTML form with some fields and check box.
Everything works fine except whe

Extra fields in main body and php required.
I'm new to PHP so please be gentle. I have a little php script below that works well.
The &quo

echo $rows help
Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Selec

HTML form problem
Ive made a form to that i want to send to my email via PHP. but when it send only the name's etc sen

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

array_map() probably obvious mistake
The code below is part of a class to escape strings, but should also accept an array, using array_ma

Simultaneous select/update/insert
Hi

How would I need to go about when 2 users update a single row simultaneous? And how would

array_diff weirdness
I'm using the following bit of code

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

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