1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
% Copyright 1998, 1999 the fontinst maintenance team and any individual
% authors listed elsewhere in this file. All rights reserved.
%
% This file is part of the fontinst system version 1.9.
% -----------------------------------------------------
%
% It may be distributed under the terms of the LaTeX Project Public
% License, as described in lppl.txt in the base LaTeX distribution.
% Either version 1.0 or, at your option, any later version.
%
%%% ====================================================================
%%% @TeX-font-metrics-file{
%%% author = "Ulrik Vieth",
%%% version = "1.910",
%%% date = "16 November 1999",
%%% time = "23:01:44 CET",
%%% filename = "resetosf.mtx",
%%% email = "fontinst@cogs.susx.ac.uk",
%%% URL = "http://www.tug.org/applications/fontinst/",
%%% checksum = "04190 88 254 2588",
%%% codetable = "ISO/ASCII",
%%% keywords = "metrics, raw, TeX, PostScript",
%%% supported = "yes",
%%% abstract = "This is a metrics file, for use with the
%%% fontinst utility. It recodes glyph names
%%% for oldstyle numerals read from AFM files
%%% to glyph names with an `oldstyle' suffix.",
%%% package = "fontinst",
%%% dependencies = "fontinst.sty, fontdoc.sty",
%%% }
%%% ====================================================================
\relax
\documentclass[twocolumn]{article}
\usepackage{fontdoc}
\title{The \texttt{resetosf.mtx} metrics file}
\author{Ulrik Vieth}
\date{16 November 1999 \\
Version 1.910}
\begin{document}
\maketitle
This document describes the \texttt{resetosf.mtx} metrics file, which is
used to recode raw glyph names for oldstyle numerals to glyph names
with an `oldstyle' suffix.
\metrics
\setcommand\oldstyleglyph#1{
\ifisglyph{#1}\then
\setglyph{#1oldstyle}\glyph{#1}{1000}
\endsetglyph
\fi
}
\setcommand\oldstylekerning#1{
\ifisglyph{#1}\then
\setleftrightkerning{#1oldstyle}{#1}{1000}
\fi
}
\oldstyleglyph{zero}
\oldstyleglyph{one}
\oldstyleglyph{two}
\oldstyleglyph{three}
\oldstyleglyph{four}
\oldstyleglyph{five}
\oldstyleglyph{six}
\oldstyleglyph{seven}
\oldstyleglyph{eight}
\oldstyleglyph{nine}
\oldstylekerning{zero}
\oldstylekerning{one}
\oldstylekerning{two}
\oldstylekerning{three}
\oldstylekerning{four}
\oldstylekerning{five}
\oldstylekerning{six}
\oldstylekerning{seven}
\oldstylekerning{eight}
\oldstylekerning{nine}
\endmetrics
\end{document}
|