]> git.imager.perl.org - imager.git/commitdiff
libt1 support is deprecated
authorTony Cook <tony@develop-help.com>
Sat, 13 Jun 2020 04:45:45 +0000 (14:45 +1000)
committerTony Cook <tony@develop-help.com>
Sat, 13 Jun 2020 04:45:45 +0000 (14:45 +1000)
T1/T1.pm
lib/Imager/Font.pm

index 74877b96734f6263cbb737a6a395f91c0b939c28..8c1d764a73771c2958b1dd4abde2c4d3d71c723b 100644 (file)
--- a/T1/T1.pm
+++ b/T1/T1.pm
@@ -233,13 +233,15 @@ __END__
 
 =head1 DESCRIPTION
 
+=for stopwords Freetype
+
 Imager::Font::T1 is deprecated.
 
 F<T1Lib> is unmaintained and has serious bugs when built on 64-bit
 systems.  Freetype 2 has Type 1 font support and is supported by
-Imager via Imager::Font::FT2.
+Imager via L<Imager::Font::FT2>.
 
-Imager::Font creates a Imager::Font::Type1 object when asked to create
+L<Imager::Font> creates a C<Imager::Font::Type1 object> when asked to create
 a font object based on a C<.pfb> file.
 
 See Imager::Font to see how to use this type.
index e0ccc8f76e52b0f45f33c834d8ec3bfc32ab96fe..4a50c22c7ef10487f125f65691c8d4baaca810fb 100644 (file)
@@ -45,7 +45,7 @@ my %drivers =
   );
 
 # this currently should only contain file based types, don't add w32
-my @priority = qw(tt ft2 ifs);
+my @priority = qw(ft2 ifs);
 
 sub new {
   my $class = shift;
@@ -405,18 +405,8 @@ Imager::Font - Font handling for Imager.
 
 =for stopwords TrueType FreeType
 
-This module handles creating Font objects used by Imager.  The module
-also handles querying fonts for sizes and such.  If both T1lib and
-FreeType were available at the time of compilation then Imager should
-be able to work with both TrueType fonts and t1 Postscript fonts.  To
-check if Imager is t1 or TrueType capable you can use something like
-this:
-
-  use Imager;
-  print "Has truetype"      if $Imager::formats{tt};
-  print "Has t1 postscript" if $Imager::formats{t1};
-  print "Has Win32 fonts"   if $Imager::formats{w32};
-  print "Has Freetype2"     if $Imager::formats{ft2};
+This module manages, the font object returned by Imager::Font->new
+will typically be of a class derived from Imager::Font.
 
 =over 4
 
@@ -1036,10 +1026,9 @@ You can set new priorities and save the old priorities with:
 If you supply driver names that are not currently supported, they will
 be ignored.
 
-Imager supports both T1Lib and FreeType 2 for working with Type 1
-fonts, but currently only T1Lib does any caching, so by default T1Lib
-is given a higher priority.  Since Imager's FreeType 2 support can also
-do font transformations, you may want to give that a higher priority:
+Note that by default the priority list no longer includes C<tt> and
+C<t1>, so typically you will need to have L<Imager::Font::FT2>
+installed to create fonts with Imager.
 
   my @old = Imager::Font->priorities(qw(tt ft2 t1));