[libGD] #220 [Task opened] gdImageStringFT produces incorrect character spacing
[email protected] Mon, 8 Mar 2010 22:36:50 +0100 (CET)
| Newsgroups | php.gd.bugs |
|---|---|
| Message-ID | <[email protected]> |
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Björn Stenberg (zagor)
Attached to Project - libGD
Summary - gdImageStringFT produces incorrect character spacing
Task Type - Bug Report
Category - Freetype
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - Low
Priority - Normal
Reported Version - 2.0.36RC1
Due in Version - Undecided
Due Date - Undecided
Details - The following code:
<code>#include <stdio.h>
#include <stdlib.h>
#include "gd.h"
int main (int argc, char** argv)
{
char* font = "/usr/share/fonts/truetype/msttcorefonts/arial.ttf";
gdImagePtr img = gdImageCreate(500, 50);
int white = gdImageColorAllocate(img, 255, 255 ,255);
int black = gdImageColorAllocate(img, 0, 0, 0);
int brect[8];
gdImageStringFT(img, brect, black, font, 8, 0, 10, 20, "al ol el farmor
hamtar skolan");
FILE* out = fopen("test.png", "w");
gdImagePng(img, out);
fclose(out);
return 0;
}
</code>
Produces the following png:
More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=220
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.