From f57760f92d28c76b8efac9994495070b37777bea Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 16 Nov 2021 03:00:59 +0000 Subject: CTAN sync 202111160300 --- fonts/utilities/fontools/bin/afm2afm | 4 ++-- fonts/utilities/fontools/bin/autoinst | 28 +++++++++++++++++++++------- fonts/utilities/fontools/bin/ot2kpx | 4 ++-- fonts/utilities/fontools/bin/splitttc | 4 ++-- 4 files changed, 27 insertions(+), 13 deletions(-) (limited to 'fonts/utilities/fontools/bin') diff --git a/fonts/utilities/fontools/bin/afm2afm b/fonts/utilities/fontools/bin/afm2afm index 9a6319a9da..61c2a6eee5 100755 --- a/fonts/utilities/fontools/bin/afm2afm +++ b/fonts/utilities/fontools/bin/afm2afm @@ -37,7 +37,7 @@ use File::Basename; use Getopt::Long; use Pod::Usage; -my $VERSION = "20210721"; +my $VERSION = "20211115"; parse_commandline(); @@ -421,7 +421,7 @@ See the GNU General Public License for more details. =head1 VERSION -This document describes B version 20210721. +This document describes B version 20211115. =head1 RECENT CHANGES diff --git a/fonts/utilities/fontools/bin/autoinst b/fonts/utilities/fontools/bin/autoinst index 46e0a598cb..6ea19fe5ff 100755 --- a/fonts/utilities/fontools/bin/autoinst +++ b/fonts/utilities/fontools/bin/autoinst @@ -41,7 +41,7 @@ use Getopt::Long (); use Pod::Usage (); use POSIX (); -my $VERSION = '20210721'; +my $VERSION = '20211115'; my ($d, $m, $y) = (localtime time)[3 .. 5]; my $TODAY = sprintf "%04d/%02d/%02d", $y + 1900, $m + 1, $d; @@ -646,15 +646,13 @@ sub _parse_metadata { $data->{subfamily} =~ s/\A (?: ST | T | SD | D)//xms; } - # remove Adobe's SmallText size, to avoid mistaking it for Text weight - for my $fieldname (qw(family subfamily fullname)) { - $data->{$fieldname} =~ s/(?: SmallText | SmText )\z//xmsi; - } - # Sometimes the relevant info is in Fullname, sometimes in Subfamily; # so we need to test against both my $fullinfo = lc "$data->{subfamily} | $data->{fullname}"; + # remove Adobe's SmallText size, to avoid mistaking it for Text weight + $fullinfo =~ s/(?: SmallText | SmText )\z//xmsi; + # We need to be careful when parsing the font info; in particular # we must parse strings like 'UltraCondensed' as 'Regular' weight # and 'UltraCondensed' width, not as 'Ultra' weight and 'Condensed' width. @@ -3669,6 +3667,18 @@ a user-defined suffix to the names of all generated Type1 fonts; see L below. +=head2 Sorry, LIGTABLE too long for me to handle + +The LIGTABLE in TeX's F files, which contains a font's ligatures +and kerning pairs, is limited to about 32,500 entries (2^15 - 256). +If the number of ligatures plus kerns in a font is higher than that limit, +I and I will complain loudly and ignore the excess entries. +This happens at least with Adobe's Source Serif 4 and Minion 3. +The best way to handle this situation is to use B's C<-extra> option +to raise F's value for the C<--min-kern> parameter, which causes it +to ignore small kerning pairs: C<-extra='--min-kern=5.0'>. + + =head2 A note for MiKTeX users Automatically installing the fonts into a suitable TEXMF tree @@ -4029,7 +4039,7 @@ GNU General Public License for more details. =head1 VERSION -This document describes B version 20210721. +This document describes B version 20211115. =head1 RECENT CHANGES @@ -4038,6 +4048,10 @@ This document describes B version 20210721. =over 12 +=item I<2021-11-15> + +Bugfix: font info parsing now works for Adobe Source Serif 4. + =item I<2021-07-21> Bugfixes: diff --git a/fonts/utilities/fontools/bin/ot2kpx b/fonts/utilities/fontools/bin/ot2kpx index a037fa7685..a336ee5a53 100755 --- a/fonts/utilities/fontools/bin/ot2kpx +++ b/fonts/utilities/fontools/bin/ot2kpx @@ -38,7 +38,7 @@ use Getopt::Long (); use List::Util @List::Util::EXPORT_OK; use Pod::Usage; -my $VERSION = "20210721"; +my $VERSION = "20211115"; our ($NUM_GLYPHS, $UNITS_PER_EM, %kern); @@ -858,7 +858,7 @@ See the GNU General Public License for more details. =head1 VERSION -This document describes B version 20210721. +This document describes B version 20211115. =head1 RECENT CHANGES diff --git a/fonts/utilities/fontools/bin/splitttc b/fonts/utilities/fontools/bin/splitttc index f0950a1256..1f5349c77f 100755 --- a/fonts/utilities/fontools/bin/splitttc +++ b/fonts/utilities/fontools/bin/splitttc @@ -38,7 +38,7 @@ use File::Basename; use Getopt::Long; use Pod::Usage; -my $VERSION = "20210721"; +my $VERSION = "20211115"; parse_commandline(); @@ -303,7 +303,7 @@ See the GNU General Public License for more details. =head1 VERSION -This document describes B version 20210721. +This document describes B version 20211115. =head1 RECENT CHANGES -- cgit v1.2.3