Closed avorop closed 6 months ago
libfreetype is part of SP 5.38.2.2 but it seems the libgd build did not link to libfreetype.
The good news is that the latest builds do link to it. They will be used for 5.40 when it comes out, and I'll do a new 5.38 as well. They use UCRT instead of MSVCRT so will not work with SP 5.38.2 but I'm planning an update to 5.38 when I get 5.40 working.
https://github.com/StrawberryPerl/build-extlibs/releases/tag/gcc13.2_ucrt_posix
That's really good news. Then I'll just wait with upgrade till another version appears. Thanks for update!
Hello,
I've tried to update from 5.32 to 5.38 and noticed that GD library started to produce strange images. After some searching it was discovered, that usage of TTF fonts is not supported anymore. This simple piece of code gives out warning "libgd was not built with FreeType font support".
`#!perl use strict; use GD::Simple;
my $img = GD::Simple->new(400,250);
$img->moveTo(10,180); $img->string('This is very simple');
$img->font('c:\Windows\Fonts\ariali.ttf'); $img->fontsize(20); if(!defined $img->string('This is very fancy')) { warn("Fancy didn't work: $@\n"); }
binmode STDOUT; print $img->png; `
Is it some licensing problem, or one just forgot to add it?