Subject: | GD::Font->load() leads to "Out of memory!" |
Date: | Fri, 10 Oct 2008 20:39:55 +0200 |
To: | bug-GD [...] rt.cpan.org |
From: | Sven Eppler <sven [...] sveneppler.de> |
Hello,
today i tried to play a little bit around with the possibility to load
truetype fonts in Gd.
But my quite simple attemps all end up with an "Out of memory!" message.
Even with the perl debugger i can't realy examine whats going wrong.
It's going down right after
GD::Font->load("font.ttf");
My example code:
#!/usr/bin/perl
use strict;
use warnings;
use GD;
print "Loading font...";
GD::Font->load("verdana.ttf");
print "done!";
And the output:
ghandi@india:/tmp$ perl test.pl
Out of memory!
Loading font...
Tried the exemple C-Code from libgd.org (http://www.libgd.org/Font
function *gdImageStringFT) which has no problems with the corresponding
font and renders my string correctly. So i assume it's not a problem of
my libgd or libfreetype on my system but a problem inside the perl GD
module.
GD.pm Version: 2.41
libgd2-xpm Version: 2.0.36~rc1
libfreetype5 Version: 2.3.7-2
perl: This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
Distribution: Debian 4.0 Lenny AMD64
uname -a: Linux india 2.6.26-1-amd64 #1 SMP Wed Sep 10 15:31:12 UTC 2008
x86_64 GNU/Linux
I can also confirm this bug with the same code and same error on another
Debian machine:
GD.pm Version:2.34-1
lbgd2-xpm Version: 2.0.34-1
libfreetype6 Version: 2.3.5-1+b1
perl: This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
Distribution: Debian 3.1 etch whith some installed lenny packages
uname -a:Linux host.de 2.6.9-023stab048.4-smp #1 SMP Fri Jul 11 18:00:55
MSD 2008 i686 GNU/Linux
Hopefully i can help out a little bit. If anymore information is needed,
just ask for it. ;)
Bye,
Sven
Message body not shown because it is not plain text.