[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetype
Subject:    [Freetype] GD::Text doesn't seem to like FreeType
From:       "Dan Delaney" <DDelaney () PowerCreative ! com>
Date:       2001-01-04 19:56:21
[Download RAW message or body]

Forgive me if this is outside the scope of this list, but I can't find very many \
forums that might have the answer to this problem. I'm trying to compile the GD::Text \
perl module for the GD library with FreeType support in it on a Solaris 7 system. GD \
successfully compiled with the Freetype library. GD::Text seemed to compile \
successfully. But when I do gmake test I get several errors in the TrueType tests. \
Has anyone else had this problem and found a way to fix it? Below is what it returns. \
(GD at this point, by the way, only supports FreeType 1.)

Thanks a lot!
--Dan

t/align.............NOK 19FAILED tests 15, 18-19
        Failed 3/19 tests, 84.21% okay
t/text..............ok 18/18FAILED tests 12-13
        Failed 2/18 tests, 88.89% okay
t/wrap..............ok 13/13FAILED test 12
        Failed 1/13 tests, 92.31% okay
Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------
t/align.t                    19    3  15.79%  15, 18-19
t/text.t                     18    2  11.11%  12-13
t/wrap.t                     13    1   7.69%  12
Failed 3/3 test scripts, 0.00% okay. 6/50 subtests failed, 88.00% okay.
gmake: *** [test_dynamic] Error 29


And here is the code of the specified failed tests:

t/align.t
---------
TTF fonts
15:
        $t = GD::Text::Align->new($gd,
                valign => 'top',
                halign => 'left',
                text => 'Banana Boat',
                colour => 1,
                font => 'cetus.ttf',
                ptsize => 18,
        );
        @bb = $t->draw(10,40);

18:
        $t->set_align('bottom', 'left');
        @bb = $t->bounding_box(100,100);

19:
        $t->set_align('top', 'center');
        @bb = $t->bounding_box(100,100, 4*PI/3);



t/text.t
--------
12:
        # Check some size parameters
        @p = $t->get(qw(width height char_up char_down space));

13:
        # Check that constructor with argument works
        $t = GD::Text->new(text => 'FooBar', font =>'cetus');
        @p = $t->get(qw(width height char_up char_down space)) if defined $t;


t/wrap.t
---------
12:
        # Get the bounding box
        @bb = $wp->get_bounds(20,10);


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV>Forgive me if this is outside the scope of this list, but I can't find very 
many forums that might have the answer to this problem. I'm trying to compile 
the GD::Text perl module for the GD library with FreeType support in it on a 
Solaris 7 system. GD successfully compiled with the Freetype library. GD::Text 
seemed to compile successfully. But when I do gmake test I get several errors in 
the TrueType tests. Has anyone else had this problem and found a way to fix 
it?&nbsp;Below is what it returns. (GD at this point, by the way, only supports 
FreeType 1.)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks a lot!</DIV>
<DIV>--Dan</DIV>
<DIV>&nbsp;</DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV>t/align.............NOK 19FAILED tests 15, 
18-19<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Failed 3/19 tests, 84.21% 
okay<BR>t/text..............ok 18/18FAILED tests 
12-13<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Failed 2/18 tests, 88.89% 
okay<BR>t/wrap..............ok 13/13FAILED test 
12<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Failed 1/13 tests, 92.31% 
okay<BR>Failed Test&nbsp; Status Wstat Total Fail&nbsp; Failed&nbsp; List of 
failed<BR>---------------------------------------------------------------------------- \
---<BR>t/align.t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 19&nbsp;&nbsp;&nbsp; 3&nbsp; 15.79%&nbsp; 15, 
18-19<BR>t/text.t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 18&nbsp;&nbsp;&nbsp; 2&nbsp; 11.11%&nbsp; 
12-13<BR>t/wrap.t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 13&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 7.69%&nbsp; 12<BR>Failed 3/3 test scripts, 
0.00% okay. 6/50 subtests failed, 88.00% okay.<BR>gmake: *** [test_dynamic] 
Error 29</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>And here is the code of the specified failed tests:</DIV>
<DIV>&nbsp;</DIV>
<DIV>t/align.t</DIV>
<DIV>---------</DIV>
<DIV>TTF fonts</DIV>
<DIV>15:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $t = 
GD::Text::Align-&gt;new($gd,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 valign =&gt; 
'top',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 halign =&gt; 
'left',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 text =&gt; 'Banana 
Boat',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 colour =&gt; 
1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 font =&gt; 
'cetus.ttf',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 ptsize =&gt; 18,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @bb = 
$t-&gt;draw(10,40);<BR></DIV>
<DIV>18:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $t-&gt;set_align('bottom', 
'left');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @bb = 
$t-&gt;bounding_box(100,100);<BR></DIV>
<DIV>19:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $t-&gt;set_align('top', 
'center');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @bb = 
$t-&gt;bounding_box(100,100, 4*PI/3);<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>t/text.t</DIV>
<DIV>--------</DIV>
<DIV>12:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Check some size 
parameters<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @p = 
$t-&gt;get(qw(width height char_up char_down space));<BR></DIV>
<DIV>13:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Check that constructor with 
argument works<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $t = 
GD::Text-&gt;new(text =&gt; 'FooBar', font 
=&gt;'cetus');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @p = 
$t-&gt;get(qw(width height char_up char_down space)) if defined $t;<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>t/wrap.t</DIV>
<DIV>---------</DIV>
<DIV>12:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Get the bounding 
box<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @bb = 
$wp-&gt;get_bounds(20,10);<BR></DIV>
<DIV>&nbsp;</DIV></FONT></DIV></FONT></DIV></BODY></HTML>


_______________________________________________
Freetype mailing list
Freetype@freetype.org
http://www.freetype.org/mailman/listinfo/freetype


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic