Главная страница


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Alexander V. Gaiduk                  2:5020/400     07 May 2004  13:33:11
 To : Soft
 Subject : Hа: use GD
 -------------------------------------------------------------------------------- 
 
 > Windows
 >
 > use GD;
 > open(PNG,"data/other/image.png");
 > $image=newFromPng GD::Image(PNG);
 > close PNG;
 > $black=$image->colorAllocate(0,0,0);
 > $font=".data/fonts/arial.ttf";
 > $image->stringTTF($black,$font,11,0,20,60,"345");
 >
 > В результате вместо букв и цифр выписываются квадратики. Как лечить?
 
 а еще, глянь чё в мануале написано про "relative font paths":
 For backward compatibility with older versions of the FreeType library, the
 alias stringTTF() is also recognized. Also be aware that relative font paths
 are not recognized due to problems in the libgd library.
 --- ifmail v.2.15dev5.3
  * Origin: Internet-Arkhangelsk Company (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 use GD   Soft   02 May 2004 22:44:51 
 Hа: use GD   Alexander V. Gaiduk   07 May 2004 13:19:05 
 Hа: use GD   Alexander V. Gaiduk   07 May 2004 13:33:11 
 Hа: use GD   Alexander V. Gaiduk   07 May 2004 14:45:15 
Архивное /ru.perl/89267ee9a947.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional