]> git.imager.perl.org - imager.git/blobdiff - samples/README
- added samples/align-string.pl
[imager.git] / samples / README
index ff8ce48690ed7136b9b830622ff7dbebe13203eb..5f94c7f771c7265526efa4afd3655b14ccd2dd31 100644 (file)
@@ -74,3 +74,16 @@ slant_text.pl
 tk-photo.pl
 
   Simple example of making a Tk::Photo object using Imager data.
+
+align-string.pl
+
+  Simple demonstration of the align_string() method.  Usage:
+
+   perl align-string.pl fontfile size outputfile text...
+
+  eg.
+
+   perl align-string.pl fontfiles/ImUgly.ttf 60 test.ppm .A.
+
+  This demonstrates how the various values of halign and valign
+  behave.