From 82b92c6c6aca6368ee7e1c70c5b5b7ded0547e21 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 5 Apr 2014 22:21:21 +0000 Subject: fontools (5apr14) git-svn-id: svn://tug.org/texlive/trunk@33380 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/fontools/autoinst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/scripts') diff --git a/Master/texmf-dist/scripts/fontools/autoinst b/Master/texmf-dist/scripts/fontools/autoinst index 5510ee8b31c..2e9ca6833f4 100755 --- a/Master/texmf-dist/scripts/fontools/autoinst +++ b/Master/texmf-dist/scripts/fontools/autoinst @@ -966,23 +966,25 @@ sub parse_basicinfo { $data{fullname} = lc $data{fullname}; $data{family} =~ s/\A(?: Adobe | ITC | LT | MT)//xms; $data{family} =~ s/(\d)/$DIGITS[$1]/xmsge; - + + my $fullinfo = lc "$data{subfamily} | $data{fullname}"; + for my $width (mqrs(keys %FD_WIDTH)) { - if ($data{fullname} =~ s/${width}//xmsi) { + if ($fullinfo =~ s/${width}//xmsi) { $info->{width} = $width; last; } } for my $weight (mqrs(keys %FD_WEIGHT)) { - if ($data{fullname} =~ s/${weight}//xmsi) { + if ($fullinfo =~ s/${weight}//xmsi) { $info->{weight} = $weight; last; } } for my $shape (mqrs(keys %FD_SHAPE)) { - if ($data{fullname} =~ s/${shape}//xmsi) { + if ($fullinfo =~ s/${shape}//xmsi) { $info->{shape} = $shape; last; } @@ -2152,6 +2154,10 @@ GNU General Public License for more details. =over 12 +=item I<2014-04-04> + +Fixed a bug in the font info parsing code. + =item I<2014-01-21> "Oblique" or "slanted" fonts are now mapped to NFSS code "sl" instead -- cgit v1.2.3