summaryrefslogtreecommitdiff
path: root/fonts/malvern/fontinst/pdcadma.mtx
blob: 59d7c98bef2a65423321ede884b001d7c24f9b78 (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
% %M% 1.%I% 19%E% -- glyph hacks for Malvern -*-TeX-*-
%%% ====================================================================
%%%  @TeX-file{
%%%     author          = "P. Damian Cugley",
%%%     version         = "1.%I%",
%%%     date            = "19%E%",
%%%     filename        = "%M%",
%%%     address         = "Oxford University Computing Laboratory,
%%%			   Parks Road, Oxford OX1 3QD, UK",
%%%     email           = "Damian.Cugley@comlab.ox.ac.uk",
%%%     codetable       = "USASCII",
%%%     keywords        = "AFM, virtual fonts, fonts, Malvern, TeX",
%%%     supported       = "no",
%%%     abstract        = "Hacks for making Malvern A glyphs
%%%				from Adobe glyphs.",
%%%     package         = "",
%%%     dependencies    = "fontinst, pdc-etxf.tex",
%%%  }
%%% ====================================================================

\relax

\catcode`@=11 \input fontdoc.sty \catcode`@=12
\input pdcetxf

%  Following 4 lines get the version ID from SCCS:
\begingroup\catcode`\%=12 \toks0={\endgroup
	\def\pdcversion{1.%R%} 
	\def\lastedit{19%E%}
}\the\toks0

\title{Malvern glyphes for {\tt fontinst}}

\section{Introduction}
	This document describes additional glyphs for the {\tt fontinst}
	package to use when generating Latin fonts with the Malvern~A
	and B encodings from fonts with the Adobe character set.  It
	should be listed in a \cs{installfont} command after {\tt
	latin}.

	This is version \pdcversion, last edited \lastedit.

\raggedright

\metrics

\def\setleftrightkerning#1#2#3%
{
    \setleftkerning{#1}{#2}{#3}
    \setrightkerning{#1}{#2}{#3}
}

\comment{\section{Miscellaneous glyphs}}

\setint{superiorscale}{700}
\setint{superiordy}{\sub{\int{ascender}}
	{\scale{\int{ascender}}{\int{superiorscale}}}}
\setint{inferiorscale}{\int{superiorscale}}
\setint{inferiordy}{0}

\def\superior#1%
{
    \moveup{\int{superiordy}}
    \glyph{#1}{\int{superiorscale}}
    \moveup{-\int{superiordy}}
}

\def\inferior#1%
{
    \moveup{\int{inferiordy}}
    \glyph{#1}{\int{inferiorscale}}
    \moveup{-\int{inferiordy}}
}
\def\flushtop#1#2%
{
    \moveup{\sub{\height{X}}{\scale{\height{#1}}{#2}}}
    \glyph{#1}{#2}
    \moveup{\sub{\scale{\height{#1}}{#2}}{\height{X}}}
}

\setglyph{cedillacap} \glyph{cedilla}{1000} \endsetglyph
\setglyph{ogonekcap} \glyph{ogonek}{1000} \endsetglyph
\setglyph{acutecap} \glyph{acute}{1000} \endsetglyph
\setglyph{gravecap} \glyph{grave}{1000} \endsetglyph
\setglyph{circumflexcap} \glyph{circumflex}{1000} \endsetglyph
\setglyph{tildecap} \glyph{tilde}{1000} \endsetglyph
\setglyph{ringcap} \glyph{ring}{1000} \endsetglyph
\setglyph{caroncap} \glyph{caron}{1000} \endsetglyph
\setglyph{brevecap} \glyph{breve}{1000} \endsetglyph
\setglyph{hungarumlautcap} \glyph{hungarumlaut}{1000} \endsetglyph
\setglyph{macrondbl} \glyph{macron}{1000} \endsetglyph

\setglyph{careof} 
   	\flushtop{c}{\int{superiorscale}}
	\glyph{fraction}{1000}
	\inferior{o}
\endsetglyph

\setglyph{csuperior} 
	\superior{c} 
\endsetglyph

\setglyph{csuperior1}
	\glyph{csuperior}{1000}
\endsetglyph

\setint{ballotboxht}{\add{\int{ascender}}{\int{descender}}}
\setint{ballotboxdp}{\int{descender}}
\setint{ballotboxwd}{\sub{\int{ballotboxht}}
	{\scale{\int{underlinethickness}}{2000}}}
\setint{ballotboxsp}{\int{visiblespacesurround}}

\setglyph{ballotbox} 
	\movert{\int{ballotboxsp}}
	\moveup{-\int{ballotboxdp}}
	\glyphrule{\int{underlinethickness}}{\int{ballotboxht}}
	\push
		\moveup{\sub{\int{ballotboxht}}{\int{underlinethickness}}}
		\glyphrule{\int{ballotboxwd}}{\int{underlinethickness}}
	\pop
	\glyphrule{\int{ballotboxwd}}{\int{underlinethickness}}
	\glyphrule{\int{underlinethickness}}{\int{ballotboxht}}
	\moveup{\int{ballotboxdp}}
	\movert{\int{ballotboxsp}}
\endsetglyph

\setint{markscale}{750}
% based on Alan's topaccent
\setglyph{hcircumflex}
	\push
	\moveup{\sub{\int{xheight}}{\scale{\int{xheight}}{\int{markscale}}}}
	\movert{\sub{\scale{\width{h}}{600}}
		    {\scale{\scale{\width{circumflex}}{500}}{\int{markscale}}}}
	\glyph{circumflex}{\int{markscale}}
	\pop
	\glyph{h}{1000}
\endsetglyph

\setglyph{copyright}
	\glyph{copyrightserif}{1000}
\endsetglyph

\setglyph{registered}
	\glyph{registerserif}{1000}
\endsetglyph

\endmetrics

\bye