[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? Below is what it returns. (GD at this point, by the way, only supports
FreeType 1.)</DIV>
<DIV> </DIV>
<DIV>Thanks a lot!</DIV>
<DIV>--Dan</DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV>t/align.............NOK 19FAILED tests 15,
18-19<BR> Failed 3/19 tests, 84.21%
okay<BR>t/text..............ok 18/18FAILED tests
12-13<BR> Failed 2/18 tests, 88.89%
okay<BR>t/wrap..............ok 13/13FAILED test
12<BR> Failed 1/13 tests, 92.31%
okay<BR>Failed Test Status Wstat Total Fail Failed List of
failed<BR>---------------------------------------------------------------------------- \
---<BR>t/align.t \
19 3 15.79% 15,
18-19<BR>t/text.t \
18 2 11.11%
12-13<BR>t/wrap.t \
13 1 7.69% 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> </DIV>
<DIV> </DIV>
<DIV>And here is the code of the specified failed tests:</DIV>
<DIV> </DIV>
<DIV>t/align.t</DIV>
<DIV>---------</DIV>
<DIV>TTF fonts</DIV>
<DIV>15:</DIV>
<DIV> $t =
GD::Text::Align->new($gd,<BR> \
valign =>
'top',<BR> \
halign =>
'left',<BR> \
text => 'Banana
Boat',<BR> \
colour =>
1,<BR> \
font =>
'cetus.ttf',<BR> \
ptsize => 18,<BR>
);<BR> @bb =
$t->draw(10,40);<BR></DIV>
<DIV>18:</DIV>
<DIV> $t->set_align('bottom',
'left');<BR> @bb =
$t->bounding_box(100,100);<BR></DIV>
<DIV>19:</DIV>
<DIV> $t->set_align('top',
'center');<BR> @bb =
$t->bounding_box(100,100, 4*PI/3);<BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>t/text.t</DIV>
<DIV>--------</DIV>
<DIV>12:</DIV>
<DIV> # Check some size
parameters<BR> @p =
$t->get(qw(width height char_up char_down space));<BR></DIV>
<DIV>13:</DIV>
<DIV> # Check that constructor with
argument works<BR> $t =
GD::Text->new(text => 'FooBar', font
=>'cetus');<BR> @p =
$t->get(qw(width height char_up char_down space)) if defined $t;<BR></DIV>
<DIV> </DIV>
<DIV>t/wrap.t</DIV>
<DIV>---------</DIV>
<DIV>12:</DIV>
<DIV> # Get the bounding
box<BR> @bb =
$wp->get_bounds(20,10);<BR></DIV>
<DIV> </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