diff options
author | Karl Berry <karl@freefriends.org> | 2021-11-16 21:21:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-11-16 21:21:57 +0000 |
commit | 68cd91e258bbceb4ba56fdfa085d3ee996e6dfb6 (patch) | |
tree | 87776d221b42d8c7ee6befb7eef9bc2ddccfe1b8 /Build/source/texk | |
parent | 855e0c7dd1ed1c6b94656bce79b760399313887d (diff) |
fontools (16nov21)
git-svn-id: svn://tug.org/texlive/trunk@61067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
3 files changed, 25 insertions, 11 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/fontools/afm2afm b/Build/source/texk/texlive/linked_scripts/fontools/afm2afm index 9a6319a9da8..61c2a6eee5a 100755 --- a/Build/source/texk/texlive/linked_scripts/fontools/afm2afm +++ b/Build/source/texk/texlive/linked_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<afm2afm> version 20210721. +This document describes B<afm2afm> version 20211115. =head1 RECENT CHANGES diff --git a/Build/source/texk/texlive/linked_scripts/fontools/autoinst b/Build/source/texk/texlive/linked_scripts/fontools/autoinst index 46e0a598cb6..6ea19fe5ffe 100755 --- a/Build/source/texk/texlive/linked_scripts/fontools/autoinst +++ b/Build/source/texk/texlive/linked_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</COMMAND-LINE OPTIONS> below. +=head2 Sorry, LIGTABLE too long for me to handle + +The LIGTABLE in TeX's F<tfm> 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<pltotf> and I<vptovf> 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<autoinst>'s C<-extra> option +to raise F<otftotfm>'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<autoinst> version 20210721. +This document describes B<autoinst> version 20211115. =head1 RECENT CHANGES @@ -4038,6 +4048,10 @@ This document describes B<autoinst> 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/Build/source/texk/texlive/linked_scripts/fontools/ot2kpx b/Build/source/texk/texlive/linked_scripts/fontools/ot2kpx index a037fa76852..a336ee5a532 100755 --- a/Build/source/texk/texlive/linked_scripts/fontools/ot2kpx +++ b/Build/source/texk/texlive/linked_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<ot2kpx> version 20210721. +This document describes B<ot2kpx> version 20211115. =head1 RECENT CHANGES |