diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-09 22:35:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-09 22:35:27 +0000 |
commit | 1dbc8fa89c0f6fc256c3c480740e52bd6d47ba05 (patch) | |
tree | adad1223cb27d2c982f0b7d45806e6132c14e7b5 /Master | |
parent | a492b6280e5865d3e6cdf114d9fc46d6634e4899 (diff) |
fontools (9jan18)
git-svn-id: svn://tug.org/texlive/trunk@46264 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/man/man1/afm2afm.1 | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/afm2afm.man1.pdf | bin | 9958 -> 27078 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/autoinst.1 | 90 | ||||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/autoinst.man1.pdf | bin | 36930 -> 59763 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/ot2kpx.1 | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/man/man1/ot2kpx.man1.pdf | bin | 9463 -> 26181 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/support/fontools/README | 4 | ||||
-rwxr-xr-x | Master/texmf-dist/scripts/fontools/autoinst | 108 |
8 files changed, 117 insertions, 89 deletions
diff --git a/Master/texmf-dist/doc/man/man1/afm2afm.1 b/Master/texmf-dist/doc/man/man1/afm2afm.1 index ffd8fd6e8da..cc4e2726369 100644 --- a/Master/texmf-dist/doc/man/man1/afm2afm.1 +++ b/Master/texmf-dist/doc/man/man1/afm2afm.1 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== diff --git a/Master/texmf-dist/doc/man/man1/afm2afm.man1.pdf b/Master/texmf-dist/doc/man/man1/afm2afm.man1.pdf Binary files differindex 2a573de6587..9074a16ee18 100644 --- a/Master/texmf-dist/doc/man/man1/afm2afm.man1.pdf +++ b/Master/texmf-dist/doc/man/man1/afm2afm.man1.pdf diff --git a/Master/texmf-dist/doc/man/man1/autoinst.1 b/Master/texmf-dist/doc/man/man1/autoinst.1 index 918e252a0d7..94b80903be8 100644 --- a/Master/texmf-dist/doc/man/man1/autoinst.1 +++ b/Master/texmf-dist/doc/man/man1/autoinst.1 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== @@ -129,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "AUTOINST 1" -.TH AUTOINST 1 "2017-06-16" "fontools" "Marc Penninga" +.TH AUTOINST 1 "2018-01-09" "fontools" "Marc Penninga" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -336,15 +336,7 @@ no commands are generated for shapes and styles that don't exist, or whose generation was turned off by the user. Also these commands are built on top of \fIfontaxes\fR, so if that package cannot be found, you're limited to using the lower-level commands from -standard \s-1NFSS \s0(\f(CW\*(C`\efontfamily\*(C'\fR, \f(CW\*(C`\efontseries\*(C'\fR, \f(CW\*(C`\efontshape\*(C'\fR etc.). -.SS "Using multiple font families in one document" -.IX Subsection "Using multiple font families in one document" -Style files generated by versions of \fBautoinst\fR older dan 2013\-07\-25 -redefined \f(CW\*(C`\emddefault\*(C'\fR and \f(CW\*(C`\ebfdefault\*(C'\fR, whereas newer style files -build on the facilities of the \fImweights\fR package instead. -If you use multiple \fBautoinst\fR\-generated font familes in the same document, -it might be best if all style files are generated by the same version of -\&\fBautoinst\fR; re-generate the older families if necessary. +standard \s-1NFSS\s0 (\f(CW\*(C`\efontfamily\*(C'\fR, \f(CW\*(C`\efontseries\*(C'\fR, \f(CW\*(C`\efontshape\*(C'\fR etc.). .SS "\s-1NFSS\s0 codes" .IX Subsection "NFSS codes" \&\s-1NFSS\s0 identifies fonts by a combination of family, series @@ -370,48 +362,57 @@ Please also send a bug report (see \s-1AUTHOR\s0 below). the following tables. These are based on the standard \fIFontname\fR scheme and Philipp Lehman's \fIFont Installation Guide\fR, but some changes were made to avoid name clashes in font families with many different widths and weights, -such as Helvetica Neue. +such as Helvetica Neue and Fira Sans. .PP .Vb 1 \& WEIGHT WIDTH \& -\& Thin t Ultra Compressed up -\& Ultra Light ul Extra Compressed ep -\& Extra Light el Compressed p -\& Light l Compact p -\& Book [1] Ultra Condensed uc -\& Regular [1] Extra Condensed ec -\& Medium mb Condensed c -\& Demibold db Narrow n -\& Semibold sb Semicondensed sc -\& Bold b Regular [1] -\& Extra Bold eb Semiextended sx -\& Ultra ub Extended x -\& Ultra Bold ub Expanded e -\& Black k Wide w -\& Extra Black ek -\& Ultra Black uk -\& Heavy h SHAPE -\& Poster r -\& Roman, Upright n [2] -\& Italic it -\& Cursive, Kursiv it -\& Oblique sl [3] -\& Slanted sl [3] -\& Incline(d) sl [3] +\& +\& Two 2 [1] Ultra Compressed up +\& Four 4 [1] Extra Compressed ep +\& Eight 8 [1] Compressed p +\& Hair a Compact p +\& Thin t Ultra Condensed uc +\& Ultra Light ul Extra Condensed ec +\& Extra Light el Condensed c +\& Light l Narrow n +\& Book sl [2] Semicondensed sc +\& Regular [3] Regular [3] +\& Medium mb Semiextended sx +\& Demibold db Extended x +\& Semibold sb Expanded e +\& Bold b Wide w +\& Extra Bold eb +\& Ultra ub +\& Ultra Bold ub SHAPE +\& Black k +\& Extra Black ek Roman, Upright n [4] +\& Ultra Black uk Italic it +\& Heavy h Cursive, Kursiv it +\& Poster r Oblique sl [5] +\& Slanted sl [5] +\& Incline(d) sl [5] .Ve .PP \fINotes\fR .IX Subsection "Notes" .IP "[1]" 4 .IX Item "[1]" -When \fIboth\fR weight and width are empty, the \*(L"series\*(R" attribute becomes \*(L"m\*(R". +These weights only occur (as far as I know) in Fira Sans. .IP "[2]" 4 .IX Item "[2]" -Adobe Silentium Pro contains two \*(L"Roman\*(R" shapes (\*(L"RomanI\*(R" and \*(L"RomanII\*(R"); -the first of these is mapped to \*(L"n\*(R", the second one to \*(L"it\*(R". +Since release 2018\-01\-09, \fBautoinst\fR adds \*(L"ssub\*(R" rules to the \fIfd\fR files +to substitute \*(L"Book\*(R" weight for \*(L"Regular\*(R" when the latter is missing. +Before that, \*(L"Book\*(R" was treated as a synonym for \*(L"Regular\*(R". .IP "[3]" 4 .IX Item "[3]" +When \fIboth\fR weight and width are empty, the \*(L"series\*(R" attribute becomes \*(L"m\*(R". +.IP "[4]" 4 +.IX Item "[4]" +Adobe Silentium Pro contains two \*(L"Roman\*(R" shapes (\*(L"RomanI\*(R" and \*(L"RomanII\*(R"); +the first of these is mapped to \*(L"n\*(R", the second one to \*(L"it\*(R". +.IP "[5]" 4 +.IX Item "[5]" Since release 2014\-01\-21; before that, slanted shapes were mapped to \*(L"it\*(R". .SS "A note for MiKTeX users" .IX Subsection "A note for MiKTeX users" @@ -622,11 +623,11 @@ Marc Penninga <marcpenninga@gmail.com> When sending a bug report, please give as much relevant information as possible; this includes at least (but may not be limited to) the log file \fIautoinst.log\fR. -If you see any error messages (either from \fBautoinst\fR itself, from Perl or -from the \s-1OS\s0), please include these \fIverbatim\fR as well; don't paraphrase them. +If you see any error messages (either from \fBautoinst\fR itself, from the \fI\s-1LCDF\s0 TypeTools\fR, +from Perl or from the \s-1OS\s0), please include these \fIverbatim\fR as well; don't paraphrase them. .SH "COPYRIGHT" .IX Header "COPYRIGHT" -Copyright (C) 2005\-2017 Marc Penninga. +Copyright (C) 2005\-2018 Marc Penninga. .SH "LICENSE" .IX Header "LICENSE" This program is free software; you can redistribute it and/or modify @@ -644,6 +645,11 @@ but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of .SH "RECENT CHANGES" .IX Header "RECENT CHANGES" (See the source for the full story, all the way back to 2005.) +.IP "\fI2018\-01\-09\fR" 12 +.IX Item "2018-01-09" +Added the \*(L"sl\*(R" weight for font families (such as Fira Sans) that contain both +\&\*(L"Book\*(R" and \*(L"Regular\*(R" weights (reported by Bob Tennent). +Added the \*(L"Two\*(R", \*(L"Four\*(R", \*(L"Eight\*(R" and \*(L"Hair\*(R" weights. .IP "\fI2017\-06\-16\fR" 12 .IX Item "2017-06-16" Changed the \fI\-inferiors\fR option from a binary yes-or-no choice to allow diff --git a/Master/texmf-dist/doc/man/man1/autoinst.man1.pdf b/Master/texmf-dist/doc/man/man1/autoinst.man1.pdf Binary files differindex 90a493a8c7e..4a84556458a 100644 --- a/Master/texmf-dist/doc/man/man1/autoinst.man1.pdf +++ b/Master/texmf-dist/doc/man/man1/autoinst.man1.pdf diff --git a/Master/texmf-dist/doc/man/man1/ot2kpx.1 b/Master/texmf-dist/doc/man/man1/ot2kpx.1 index 6e41b4cb94d..cccca20a75b 100644 --- a/Master/texmf-dist/doc/man/man1/ot2kpx.1 +++ b/Master/texmf-dist/doc/man/man1/ot2kpx.1 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== diff --git a/Master/texmf-dist/doc/man/man1/ot2kpx.man1.pdf b/Master/texmf-dist/doc/man/man1/ot2kpx.man1.pdf Binary files differindex d8ea9629da3..f1f2a80e92a 100644 --- a/Master/texmf-dist/doc/man/man1/ot2kpx.man1.pdf +++ b/Master/texmf-dist/doc/man/man1/ot2kpx.man1.pdf diff --git a/Master/texmf-dist/doc/support/fontools/README b/Master/texmf-dist/doc/support/fontools/README index 1307cad6d85..edef4b0c661 100644 --- a/Master/texmf-dist/doc/support/fontools/README +++ b/Master/texmf-dist/doc/support/fontools/README @@ -60,9 +60,9 @@ See the GNU General Public License for more details. LICENSE & COPYRIGHT ------------------- -This software is copyright (C) 2005-2017 Marc Penninga. It is released under +This software is copyright (C) 2005-2018 Marc Penninga. It is released under the terms of the GNU General Public Licence; see the file GPLv2.txt for the license conditions. - Marc Penninga, 2017/06/16 + Marc Penninga, 2018/01/09 diff --git a/Master/texmf-dist/scripts/fontools/autoinst b/Master/texmf-dist/scripts/fontools/autoinst index 963bb89b2fc..3a5b6cdf3a1 100755 --- a/Master/texmf-dist/scripts/fontools/autoinst +++ b/Master/texmf-dist/scripts/fontools/autoinst @@ -4,7 +4,7 @@ ---------------------------------------------------------------------------- - Copyright (C) 2005-2017 Marc Penninga. + Copyright (C) 2005-2018 Marc Penninga. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -58,11 +58,15 @@ my $TODAY = sprintf "%04d/%02d/%02d", $y + 1900, $m + 1, $d; =cut my %FD_WEIGHT = ( + two => '2', + four => '4', + eight => '8', + hair => 'a', thin => 't', ultralight => 'ul', extralight => 'el', light => 'l', - book => '', + book => 'sl', regular => '', medium => 'mb', demibold => 'db', @@ -1395,7 +1399,7 @@ END_STY_XKEYVAL $defaults .= ",$default_bold" if $default_bold; my $default_regular; - for my $series (qw(light medium regular)) { + for my $series (qw(light medium book regular)) { if ($seen{$FD_WEIGHT{$series} || 'm'}) { print {$STY} "\\DeclareOptionX{$series}{\\edef\\mdseries\@$ARGV{nfss}", @@ -1494,6 +1498,17 @@ END_FD_SSUB } } + for my $shape (keys %{$data->{sl}}) { + if (!exists $data->{m}{$shape}) { + print {$FD} <<"END_FD_SSUB_SL"; +\\DeclareFontShape{$enc}{${fam}-${sty}}{m}{$shape}{ + <-> ssub * ${fam}-${sty}/sl/${shape} +}{} + +END_FD_SSUB_SL + } + } + for my $shape (keys %{$data->{b}}) { if (!exists $data->{bx}{$shape}) { print {$FD} <<"END_FD_SSUB_BX"; @@ -1786,16 +1801,6 @@ cannot be found, you're limited to using the lower-level commands from standard NFSS (C<\fontfamily>, C<\fontseries>, C<\fontshape> etc.). -=head2 Using multiple font families in one document - -Style files generated by versions of B<autoinst> older dan 2013-07-25 -redefined C<\mddefault> and C<\bfdefault>, whereas newer style files -build on the facilities of the F<mweights> package instead. -If you use multiple B<autoinst>-generated font familes in the same document, -it might be best if all style files are generated by the same version of -B<autoinst>; re-generate the older families if necessary. - - =head2 NFSS codes NFSS identifies fonts by a combination of family, series @@ -1821,35 +1826,36 @@ B<autoinst> maps widths, weights and shapes to NFSS codes using the following tables. These are based on the standard I<Fontname> scheme and Philipp Lehman's F<Font Installation Guide>, but some changes were made to avoid name clashes in font families with many different widths and weights, -such as Helvetica Neue. +such as Helvetica Neue and Fira Sans. WEIGHT WIDTH - Thin t Ultra Compressed up - Ultra Light ul Extra Compressed ep - Extra Light el Compressed p - Light l Compact p - Book [1] Ultra Condensed uc - Regular [1] Extra Condensed ec - Medium mb Condensed c - Demibold db Narrow n - Semibold sb Semicondensed sc - Bold b Regular [1] - Extra Bold eb Semiextended sx - Ultra ub Extended x - Ultra Bold ub Expanded e - Black k Wide w - Extra Black ek - Ultra Black uk - Heavy h SHAPE - Poster r - Roman, Upright n [2] - Italic it - Cursive, Kursiv it - Oblique sl [3] - Slanted sl [3] - Incline(d) sl [3] + + Two 2 [1] Ultra Compressed up + Four 4 [1] Extra Compressed ep + Eight 8 [1] Compressed p + Hair a Compact p + Thin t Ultra Condensed uc + Ultra Light ul Extra Condensed ec + Extra Light el Condensed c + Light l Narrow n + Book sl [2] Semicondensed sc + Regular [3] Regular [3] + Medium mb Semiextended sx + Demibold db Extended x + Semibold sb Expanded e + Bold b Wide w + Extra Bold eb + Ultra ub + Ultra Bold ub SHAPE + Black k + Extra Black ek Roman, Upright n [4] + Ultra Black uk Italic it + Heavy h Cursive, Kursiv it + Poster r Oblique sl [5] + Slanted sl [5] + Incline(d) sl [5] =head3 Notes @@ -1858,14 +1864,24 @@ such as Helvetica Neue. =item [1] -When I<both> weight and width are empty, the "series" attribute becomes "m". +These weights only occur (as far as I know) in Fira Sans. =item [2] +Since release 2018-01-09, B<autoinst> adds "ssub" rules to the F<fd> files +to substitute "Book" weight for "Regular" when the latter is missing. +Before that, "Book" was treated as a synonym for "Regular". + +=item [3] + +When I<both> weight and width are empty, the "series" attribute becomes "m". + +=item [4] + Adobe Silentium Pro contains two "Roman" shapes ("RomanI" and "RomanII"); the first of these is mapped to "n", the second one to "it". -=item [3] +=item [5] Since release 2014-01-21; before that, slanted shapes were mapped to "it". @@ -2114,13 +2130,13 @@ Marc Penninga <marcpenninga@gmail.com> When sending a bug report, please give as much relevant information as possible; this includes at least (but may not be limited to) the log file F<autoinst.log>. -If you see any error messages (either from B<autoinst> itself, from Perl or -from the OS), please include these I<verbatim> as well; don't paraphrase them. +If you see any error messages (either from B<autoinst> itself, from the I<LCDF TypeTools>, +from Perl or from the OS), please include these I<verbatim> as well; don't paraphrase them. =head1 COPYRIGHT -Copyright (C) 2005-2017 Marc Penninga. +Copyright (C) 2005-2018 Marc Penninga. =head1 LICENSE @@ -2148,6 +2164,12 @@ GNU General Public License for more details. =over 12 +=item I<2018-01-09> + +Added the "sl" weight for font families (such as Fira Sans) that contain both +"Book" and "Regular" weights (reported by Bob Tennent). +Added the "Two", "Four", "Eight" and "Hair" weights. + =item I<2017-06-16> Changed the I<-inferiors> option from a binary yes-or-no choice to allow |