]> git.imager.perl.org - imager.git/commitdiff
- update README to match unbuggy giflib
authorTony Cook <tony@develop=help.com>
Mon, 30 Jan 2006 23:37:31 +0000 (23:37 +0000)
committerTony Cook <tony@develop=help.com>
Mon, 30 Jan 2006 23:37:31 +0000 (23:37 +0000)
- document index parameter of Imager::Font->new()

Changes
README
lib/Imager/Font.pm

diff --git a/Changes b/Changes
index 18dbdae26ecea5cc13866171bdeea1b599664e55..bc950c18af6cc56ffcae2652c05731105a8266ba 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1321,6 +1321,8 @@ Revision history for Perl extension Imager.
 - add example to SYNOPSIS of samples/inline_replace_color.pl
 - minor POD fix in Imager::Color::Table
 - eliminate many -Wall warnings
+- update README to match unbuggy giflib
+- document index parameter of Imager::Font->new()
 
 =================================================================
 
diff --git a/README b/README
index 2a384fc4d14c035f3c9a1b012434a7330f07c79b..895835f50ead1c2e5c0169530ca9eba2d8f0148a 100644 (file)
--- a/README
+++ b/README
@@ -1,13 +1,14 @@
 ================================================================
 Copyright (c) 1999-2004 Arnar M. Hrafnkelsson. All rights reserved.
-Copyright (c) 2004 Anthony Cook.
+Copyright (c) 2004-2006 Anthony Cook.
 This program is free software; you can redistribute it and/or
 modify it under the same terms as Perl itself.
 ================================================================
 
 >> THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY WHATSOEVER <<
-If you like or hate Imager, please let us know by sending mail 
-to imager@imager.perl.org
+
+If you like or hate Imager, please let me know by sending mail 
+to imager@imager.perl.org - I love feedback.
 
 ================================================================
 
@@ -195,12 +196,7 @@ at least version 4.1.3.  If you have a recent Linux distribution you
 should be safe with whatever giflib it provides, but if you're
 building from source, please try to use the latest version.
 
-If you download giflib (as opposed to libungif) 4.1.3 from
-sourceforge, make sure you apply the patch referenced at:
-
-https://sourceforge.net/tracker/index.php?func=detail&aid=981255&group_id=102202&atid=631306
-
-libungif 4.1.3 does not need this patch.
+libgif 4.1.4 has no problems known to me at this point.
 
 At the time of writing you will need to manually select to install the
 4.1.2-1 of cygwin's libungif package.
index 4200eb8fe606da898904f2e0c0921139aa050040..08b6ef658b78e2060348aab6b472a3caf4be2a5c 100644 (file)
@@ -470,8 +470,22 @@ parameter.  Default: 0.
 aa - the default value for the $im->string(...) C<aa> parameter.
 Default: 0.
 
+=item *
+
+index - for font file containing multiple fonts this selects which
+font to use.  This is useful for Macintosh DFON (.dfont) and suitcase
+font files.
+
+If you want to use a suitcase font you will need to tell Imager to use
+the FreeType 2.x driver by setting C<type> to C<'ft2'>:
+
+  my $font = Imager::Font->new(file=>$file, index => 1, type=>'ft2')
+    or die Imager->errstr;
+
 =back
 
+
+
 =item bounding_box
 
 Returns the bounding box for the specified string.  Example: