gdimagestringft_bbox.c (libgd-2.2.4) | : | gdimagestringft_bbox.c (libgd-2.2.5) | ||
---|---|---|---|---|
skipping to change at line 41 | skipping to change at line 41 | |||
char *path; | char *path; | |||
gdImagePtr im; | gdImagePtr im; | |||
int black; | int black; | |||
double cos_t, sin_t; | double cos_t, sin_t; | |||
int x, y, temp; | int x, y, temp; | |||
int i, j; | int i, j; | |||
int brect[8]; | int brect[8]; | |||
int error = 0; | int error = 0; | |||
FILE *fp; | FILE *fp; | |||
/* disable subpixel hinting */ | ||||
putenv("FREETYPE_PROPERTIES=truetype:interpreter-version=35"); | ||||
path = gdTestFilePath("freetype/DejaVuSans.ttf"); | path = gdTestFilePath("freetype/DejaVuSans.ttf"); | |||
im = gdImageCreate(800, 800); | im = gdImageCreate(800, 800); | |||
gdImageColorAllocate(im, 0xFF, 0xFF, 0xFF); /* allocate white for backgro und color */ | gdImageColorAllocate(im, 0xFF, 0xFF, 0xFF); /* allocate white for backgro und color */ | |||
black = gdImageColorAllocate(im, 0, 0, 0); | black = gdImageColorAllocate(im, 0, 0, 0); | |||
cos_t = cos(DELTA); | cos_t = cos(DELTA); | |||
sin_t = sin(DELTA); | sin_t = sin(DELTA); | |||
x = 100; | x = 100; | |||
y = 0; | y = 0; | |||
for (i = 0; i < 16; i++) { | for (i = 0; i < 16; i++) { | |||
if (gdImageStringFT(im, brect, black, path, 24, DELTA*i, 400+x, 4 00+y, "ABCDEF")) { | if (gdImageStringFT(im, brect, black, path, 24, DELTA*i, 400+x, 4 00+y, "ABCDEF")) { | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |