aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ruby-gd/files
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-02-12 18:48:30 +0800
committerknu <knu@FreeBSD.org>2001-02-12 18:48:30 +0800
commitee8cb9f35df625f786cf04ee113ed7527631e488 (patch)
treea81457c947abd1dd5f411a08da74e29d9cdf9bd2 /graphics/ruby-gd/files
parentd8ad767704f6a81ef417320236d185542bfc6912 (diff)
downloadfreebsd-ports-gnome-ee8cb9f35df625f786cf04ee113ed7527631e488.tar.gz
freebsd-ports-gnome-ee8cb9f35df625f786cf04ee113ed7527631e488.tar.zst
freebsd-ports-gnome-ee8cb9f35df625f786cf04ee113ed7527631e488.zip
Update to 0.7.2, which now supports GD 1.8.4 with FreeType 2.x support.
Diffstat (limited to 'graphics/ruby-gd/files')
-rw-r--r--graphics/ruby-gd/files/patch-GD.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics/ruby-gd/files/patch-GD.c b/graphics/ruby-gd/files/patch-GD.c
new file mode 100644
index 000000000000..535d9899d452
--- /dev/null
+++ b/graphics/ruby-gd/files/patch-GD.c
@@ -0,0 +1,30 @@
+--- GD.c.orig Tue Feb 6 15:47:42 2001
++++ GD.c Mon Feb 12 19:39:15 2001
+@@ -1200,7 +1200,7 @@
+ Check_Type(fontname, T_STRING);
+ Check_Type(string, T_STRING);
+
+- msg = gdImageStringTTF(NULL,
++ msg = gdImageStringFT(NULL,
+ &brect[0],
+ NUM2INT(fgcolor),
+ RSTRING(fontname)->ptr,
+@@ -1232,7 +1232,7 @@
+ Check_Type(string, T_STRING);
+
+ Data_Get_Struct(img, gdImage, im);
+- msg = gdImageStringTTF(im,
++ msg = gdImageStringFT(im,
+ &brect[0],
+ NUM2INT(fgcolor),
+ RSTRING(fontname)->ptr,
+@@ -1971,7 +1971,9 @@
+ #endif
+
+ #ifdef HAVE_GDIMAGESTRINGFT
++ rb_define_singleton_method(cImage, "stringTTF", img_s_string_ft, 7);
+ rb_define_singleton_method(cImage, "stringFT", img_s_string_ft, 7);
++ rb_define_method(cImage, "stringTTF", img_string_ft, 7);
+ rb_define_method(cImage, "stringFT", img_string_ft, 7);
+ #endif
+