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.

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

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor

comparing tables across databases sql refinement ideas required
Hi all

Via pl/sql I need to ensure that data between tables in different databases match

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

New to mysqli library - Multiple query problem
Greetings,

I am writing a batch program that executes 3 queries on a single page. Using mysql

storing video files into mysql in php
hi

i have my video files in my folder ,
i have to store the path of the videos into db an

problem with refreshing
in my site, i have an index page, it has a main div. this main div's content is changing according t

Form Help
Here is the form:

Line number On/Off | Expand/Contract<? include("../include/sess

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

check if string contain only a-z/A-Z
Is where any way to check if string contains only a-z/A-Z, without writing an array with all possibl

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