summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/fontools/ot2kpx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-23 20:56:57 +0000
committerKarl Berry <karl@freefriends.org>2019-05-23 20:56:57 +0000
commit13c26861f5d3a197cd2593f569b4c0da5909a1af (patch)
treeb32a4d1f074fe7b0e10da44df327daa23293129d /Master/texmf-dist/scripts/fontools/ot2kpx
parent8677bbdef11fcc17cdbc065587f330cb86681493 (diff)
fontools (23may19)
git-svn-id: svn://tug.org/texlive/trunk@51204 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/fontools/ot2kpx')
-rwxr-xr-xMaster/texmf-dist/scripts/fontools/ot2kpx36
1 files changed, 28 insertions, 8 deletions
diff --git a/Master/texmf-dist/scripts/fontools/ot2kpx b/Master/texmf-dist/scripts/fontools/ot2kpx
index 8ce5d6a9aa7..e1548e8c9d1 100755
--- a/Master/texmf-dist/scripts/fontools/ot2kpx
+++ b/Master/texmf-dist/scripts/fontools/ot2kpx
@@ -38,6 +38,8 @@ use Getopt::Long ();
use List::Util @List::Util::EXPORT_OK;
use Pod::Usage;
+my $VERSION = "20190522";
+
our ($NUM_GLYPHS, $UNITS_PER_EM, %kern);
sub main {
@@ -47,6 +49,7 @@ sub main {
Getopt::Long::GetOptions(
'help|?' => sub { pod2usage(-verbose => 0); },
+ 'version' => sub { print "$VERSION\n"; exit; },
'doc' => sub { pod2usage(-verbose => 2); },
'afm' => sub { $ARGV{print_func} = \&print_kpx; },
'kpx' => sub { $ARGV{print_func} = \&print_kpx; },
@@ -750,6 +753,14 @@ or as a Luatex custom feature, for use with the C<\directlua> command.
=over 4
+=item B<-help>
+
+Print a short help text and exit.
+
+=item B<-version>
+
+Print B<ot2kpx>'s version and exit.
+
=item B<-afm>, B<-kpx>
Output the kerning data in Adobe's KPX format, as used in F<afm> files.
@@ -845,17 +856,33 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
+=head1 VERSION
+
+This document describes B<ot2kpx> version 20190522.
+
+
=head1 RECENT CHANGES
(See the source code for the rest of the story.)
=over 12
+=item I<2019-05-20>
+
+Added the I<-version> option.
+
=item I<2019-04-15>
-Added the -lua command-line option to get output in Luatex's
+Added the I<-lua> command-line option to get output in Luatex's
custom feature format.
+=back
+
+
+=begin Really_old_history
+
+=over 12
+
=item I<2013-08-07>
Replaced all C<given/when> constructions in the source code by C<if>'s,
@@ -866,13 +893,6 @@ to avoid warnings about experimental features in Perl 5.18 and later.
Refactored the code, and fixed a number of bugs in the process.
Updated the documentation.
-=back
-
-
-=begin Really_old_history
-
-=over 12
-
=item I<2005-01-10>
First version