From 68cd91e258bbceb4ba56fdfa085d3ee996e6dfb6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 16 Nov 2021 21:21:57 +0000 Subject: fontools (16nov21) git-svn-id: svn://tug.org/texlive/trunk@61067 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/fontools/afm2afm | 4 ++-- Master/texmf-dist/scripts/fontools/autoinst | 28 +++++++++++++++++++++------- Master/texmf-dist/scripts/fontools/ot2kpx | 4 ++-- 3 files changed, 25 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/scripts') diff --git a/Master/texmf-dist/scripts/fontools/afm2afm b/Master/texmf-dist/scripts/fontools/afm2afm index 9a6319a9da8..61c2a6eee5a 100755 --- a/Master/texmf-dist/scripts/fontools/afm2afm +++ b/Master/texmf-dist/scripts/fontools/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/Master/texmf-dist/scripts/fontools/autoinst b/Master/texmf-dist/scripts/fontools/autoinst index 46e0a598cb6..6ea19fe5ffe 100755 --- a/Master/texmf-dist/scripts/fontools/autoinst +++ b/Master/texmf-dist/scripts/fontools/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/Master/texmf-dist/scripts/fontools/ot2kpx b/Master/texmf-dist/scripts/fontools/ot2kpx index a037fa76852..a336ee5a532 100755 --- a/Master/texmf-dist/scripts/fontools/ot2kpx +++ b/Master/texmf-dist/scripts/fontools/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 -- cgit v1.2.3