Debian Codegraph @

ElstobParametric.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8"/>
5 <meta name="viewport" content="width=device-width, initial-scale=1"/>
6 <title>Elstob variable font specimen page</title>
7 <link rel="stylesheet" href="./webfiles/jquery-ui.css"/>
8 <link rel="stylesheet" href="./webfiles/Elstob-parametric-demo.css"/>
9 <!-- Global site tag (gtag.js) - Google Analytics -->
10 <script async src="https://www.googletagmanager.com/gtag/js?id=G-CT1J49SQMN"></script>
11 <script>
12 window.dataLayer = window.dataLayer || [];
13 function gtag(){dataLayer.push(arguments);}
14 gtag('js', new Date());
15 gtag('config', 'G-CT1J49SQMN');
16 </script>
17 </head>
18 <body lang="en">
19 <div id="topbox">
20 <h1><span class="bigtitle">ElstobP</span> — an experimental parametric font</h1>
21 </div>
22 <div id="headerbox" class="paragroup">
23 <p>
24 This page previews and tests a
25 <a href="https://fonts.google.com/knowledge/using_type/introducing_parametric_axes">parametric</a>
26 version of <a href="https://github.com/psb1558/Elstob-font">Elstob</a>,
27 a font for medievalists.
28 As the parametric font is experimental, its character set is a subset of that
29 of the current version of Elstob, its collection
30 of OpenType features is much reduced, and it has no italic face. As development continues, the missing
31 glyphs and features will be restored.
32 </p>
33 <p>
34 A <b>parametric font</b> is a variable font in which each axis controls
35 a single aspect of the design. By contrast, the axes of most variable fonts
36 control several aspects.
37 </p>
38 <p>
39 For example, changing the Optical Size in the current version of Elstob changes the <b>x-height</b>,
40 the <b>character width</b>, the <b>descender depth</b>, and the relationship
41 between <b>thick stems</b> and <b>thin stems</b>. In ElstobP, those five aspects of the font’s design
42 can be controlled separately, though optical sizes can still be selected
43 via the font’s <b>named instances</b> (that is, preselected combinations of axis
44 values, each one corresponding to a traditional static font file).
45 </p>
46 <p>
47 A parametric font offers at least two advantages over static fonts and even
48 other variable fonts. The first of these is
49 flexibility. You can use the font’s eight axes to create a custom instance—like
50 the header on this page, in which the characters have been narrowed and the
51 ascenders and descenders of letters like <b>d</b> and <b>p</b> have been
52 lengthened. The second advantage, less visible but still important,
53 is a sturdier infrastructure for the font:
54 for it turns out that breaking a font’s design into separate components
55 produces, in the end, higher quality outlines and a correspondingly better reading experience.
56 </p>
57 <p>
58 These advantages come at a cost: a parametric font is more challenging for users
59 than a static font, or even another variable font. But the
60 font’s numerous named instances provide easy access to the most common
61 combinations of axis values and can also serve as starting
62 points for your own customized version of the font.
63 </p>
64 <p>
65 This page works like the main
66 <a href="https://psb1558.github.io/Elstob-font/">specimen page for Elstob</a>:
67 select a text
68 to display (or type or paste in your own) and play with the sliders to
69 get a feel for how a parametric font works. The font’s eight axes are
70 explained below.
71 </p>
72
73 </div>
74 <div class="row">
75 <div class="controlbox">
76 <div class="selectbox overflow">
77 <label for="rompresets">Instances (selection):</label><br/>
78 <select id="rompresets">
79 <option value="Reg" selected="selected">Regular (12pt)</option>
80 <option value="Reg6pt">Fine Print (6pt)</option>
81 <option value="Reg8pt">Footnote (8pt))</option>
82 <option value="Reg10pt">Block Quote (10pt))</option>
83 <option value="Reg14pt">Subhead (14pt))</option>
84 <option value="Reg18pt">Display (18pt))</option>
85 <option value="ExtraLight">ExtraLight</option>
86 <option value="Light">Light</option>
87 <option value="Light10pt">Block Quote Light</option>
88 <option value="Medium">Medium</option>
89 <option value="Medium14pt">Subhead Medium</option>
90 <option value="SemiBold">SemiBold</option>
91 <option value="SemiBold18pt">Display SemiBold</option>
92 <option value="Bold">Bold</option>
93 <option value="Bold8pt">Footnote Bold</option>
94 <option value="Bold10pt">Block Quote Bold</option>
95 <option value="Bold18pt">Display Bold</option>
96 <option value="ExtraBold">ExtraBold</option>
97 </select><br/>
98 <label for="languages">Languages:</label><br/>
99 <select id="languages">
100 <option value="ModEnglish" selected="selected">Modern English</option>
101 <option value="eModEnglish">Early Modern English</option>
102 <option value="OldEnglish">Old English</option>
103 <option value="MiddleEnglish">Middle English</option>
104 <option value="Latin">Latin</option>
105 <option value="Gothic">Gothic</option>
106 <option value="ModFrench">Early Modern French</option>
107 <option value="OldSaxon">Old Saxon</option>
108 <option value="German">Early New High German</option>
109 </select>
110 </div>
111
112 <div class="slidecontainer" id="romsliders">
113 <div id="lSize" class="sliderlabel">Size: <span id="romsizetext">1.5em</span></div>
114 <div id="romsize" class="myslider"></div>
115
116 <div id="lCapHeight" class="sliderlabel">Capital Height: <span id="textCapHeight">0</span></div>
117 <div id="pCapHeight" class="myslider"></div>
118
119 <div id="lCharWidth" class="sliderlabel">Character Width: <span id="textCharWidth">0</span></div>
120 <div id="pCharWidth" class="myslider"></div>
121
122 <div id="lFigHeight" class="sliderlabel">Figure Height: <span id="textFigHeight">0</span></div>
123 <div id="pFigHeight" class="myslider"></div>
124
125 <div id="lAscenderHeight" class="sliderlabel">Ascender Height: <span id="textAscenderHeight">0</span></div>
126 <div id="pAscenderHeight" class="myslider"></div>
127
128 <div id="lDescenderDepth" class="sliderlabel">Descender Depth: <span id="textDescenderDepth">0</span></div>
129 <div id="pDescenderDepth" class="myslider"></div>
130
131 <div id="lxHeight" class="sliderlabel">x-Height: <span id="textxHeight">0</span></div>
132 <div id="pxHeight" class="myslider"></div>
133
134 <div id="lThickStroke" class="sliderlabel">Thick Stroke Width: <span id="textThickStroke">0</span></div>
135 <div id="pThickStroke" class="myslider"></div>
136
137 <div id="lThinStroke" class="sliderlabel">Thin Stroke Width: <span id="textThinStroke">0</span></div>
138 <div id="pThinStroke" class="myslider"></div>
139 </div>
140 <div class="featurebox" id="rfb">
141 <!--
142 <span class="bbx">
143 <input type="checkbox" class="featurebutton" id="romital"/>
144 <label for="romital">Italic</label>
145 </span>
146 <span class="bbx">
147 <input type="checkbox" class="featurebutton" id="romcalt" checked="checked"/>
148 <label for="romcalt">Contextual alternates</label>
149 </span>
150 <span class="bbx">
151 <input type="checkbox" class="featurebutton" id="romliga" checked="checked"/>
152 <label for="romliga">Standard ligatures</label>
153 </span>
154 -->
155 <!--
156 <span class="bbx">
157 <input type="checkbox" class="featurebutton" id="romdlig"/>
158 <label for="romdlig">Discretionary ligatures</label>
159 </span> -->
160 <span class="bbx">
161 <input type="checkbox" class="featurebutton" id="romsmcp"/>
162 <label for="romsmcp">Small caps</label>
163 </span>
164 <span class="bbx">
165 <input type="checkbox" class="featurebutton" id="romc2sc"/>
166 <label for="romc2sc">Caps 2 small caps</label>
167 </span>
168 <!-- <span class="bbx">
169 <input type="checkbox" class="featurebutton" id="rompnum"/>
170 <label for="rompnum">Proportional figures</label>
171 </span>
172 -->
173 <span class="bbx">
174 <input type="checkbox" class="featurebutton" id="romonum"/>
175 <label for="romonum">Old-style figures</label>
176 </span>
177 <span class="bbx">
178 <input type="checkbox" class="featurebutton" id="romzero"/>
179 <label for="romzero">Slashed zero</label>
180 </span>
181 <!-- <span class="bbx">
182 <input type="checkbox" class="featurebutton" id="romss02"/>
183 <label for="romss02">Insular letter-shapes</label>
184 </span>
185 <span class="bbx">
186 <input type="checkbox" class="featurebutton" id="romss01"/>
187 <label for="romss01">Alternate þ and ð</label>
188 </span>
189 <span class="bbx">
190 <input type="checkbox" class="featurebutton" id="romss05"/>
191 <label for="romss05">English þ and ð</label>
192 </span> -->
193 <!-- <span class="bbx">
194 <input type="checkbox" class="featurebutton" id="romcv382"/>
195 <label for="romcv382">Long s</label>
196 </span> -->
197 <span class="bbx">
198 <input type="checkbox" class="featurebutton" id="romss08"/>
199 <label for="romss08">Contextual long s</label>
200 </span>
201 <!-- <span class="bbx" id="aespan">
202 <input type="checkbox" class="featurebutton" id="romcv57"/>
203 <label for="romcv57">Alternate æ</label>
204 </span>
205 <span class="bbx">
206 <input type="checkbox" class="featurebutton" id="romcv362"/>
207 <label for="romcv362">r rotunda</label>
208 </span>
209 <span class="bbx">
210 <input type="checkbox" class="featurebutton" id="romss16"/>
211 <label for="romss16">Contextual r rotunda</label>
212 </span> -->
213 <span class="bbx">
214 <input type="checkbox" class="featurebutton" id="romcv691"/>
215 <label for="romcv691">Alt Tironian sign (1)</label>
216 </span>
217 <span class="bbx">
218 <input type="checkbox" class="featurebutton" id="romcv692"/>
219 <label for="romcv692">Alt Tironian sign (2)</label>
220 </span>
221 <span class="bbx">
222 <input type="checkbox" class="featurebutton" id="romcv181"/>
223 <label for="romcv181">Dotless i</label>
224 </span>
225 <!-- <span class="bbx">
226 <input type="checkbox" class="featurebutton" id="romss12"/>
227 <label for="romss12">Early English futhorc</label>
228 </span>
229 <span class="bbx">
230 <input type="checkbox" class="featurebutton" id="romss13"/>
231 <label for="romss13">Elder futhark</label>
232 </span>
233 <span class="bbx">
234 <input type="checkbox" class="featurebutton" id="romss14"/>
235 <label for="romss14">Younger futhark</label>
236 </span>
237 <span class="bbx">
238 <input type="checkbox" class="featurebutton" id="romss15"/>
239 <label for="romss15">Long Branch 2 Short Twig</label>
240 </span> -->
241 </div>
242 </div>
243 <p contenteditable="true" id="romtextarea" class="samplebox">
244 </p>
245 </div>
246 <!-- <div id="errmsg">nothing</div> -->
247 <div id="underbox" class="paragroup">
248 <h2>ElstobP’s parametric axes</h2>
249 <img src="webfiles/bbb-ascender.jpg" alt="Illustration of ascender heights"
250 width="30%" height="30%" style="float: right;"/>
251 <p>
252 A variable font axis has three key values: a minimum, a maximum, and a
253 default value somewhere in between. In ElstobP, the default value
254 for each axis is zero, while the minimum can be no less than
255 -1000 and the maximum no more than 1000. For example, the <b>Ascender
256 height</b> axis has a minimum of -1000 and a maximum of 562 because the
257 minimum height of an ascender is almost twice as far from the default
258 as the maximum height, as illustrated with the letter <b>b</b> (right). When all the
259 axes are set to zero, the result is what in a conventional font is called
260 “Regular.”
261 </p>
262 <img src="webfiles/bad-eth.png" alt="Malformed letter eth" style="float: right; width: 130px"/>
263 <p>
264 The eight axes can be combined in any way you like, and the
265 number of combinations in this font’s multidimensional design space is, for
266 practical purposes, infinite. Experiment with ElstobP on this page or
267 in an application like <a href="https://fontgoggles.org/">FontGoggles</a>
268 to discover combinations that please you. A couple of caveats. First,
269 and one hopes obviously, not every combination of parameters is guaranteed
270 to look good. Second, and more importantly, outlines can become
271 distorted when two or more axes are set at or near extreme values.
272 This has happened with the <b>ð</b> (“eth”) on the right (where both the
273 <b>x-height</b> and the <b>Thick stroke</b> axes are set to the maximum). Decrease
274 either or both of these a little and the distortion where the stroke
275 closing the top of the bowl meets the right-hand stem disappears.
276 </p>
277 <img src="webfiles/elstob-parameters.jpg" alt="Elstob's axes" style="display: block; margin-left: auto; margin-right: auto; width: 50%;"/>
278 <p>
279 Elstob’s axes (except for <b>Figure height</b>, which applies only to the font’s
280 default numbers) are here illustrated with the Icelandic letter <b>thorn</b>.
281 The following list adds some details. Apps that, like the Adobe Creative Suite, are aware of variable
282 fonts will display the English names of the axes. If you are writing the CSS for a web page, you will need
283 the four-letter tags, which are used by the makers of most parametric fonts. (For easy CSS access to the
284 font’s instances, copy the “Instance Classes” from the style sheet for this page.)
285 </p>
286 <dl>
287 <dt>Ascender height (YTAS)</dt>
288 <dd>
289 Range -1000–562. Changes the height of the ascenders on letters like
290 <b>b</b>, <b>d</b>, <b>þ</b>. Affects only lowercase letters and
291 some old-style figures.
292 </dd>
293 <dt>Capital height (YTUC)</dt>
294 <dd>
295 Range -1000–588. Changes the height of capitals (and capital-like
296 symbols such as the Euro sign) by vertically expanding or contracting the white
297 space within the letter. The width of stems is unchanged.
298 </dd>
299 <dt>Character width (XTRA)</dt>
300 <dd>
301 Range -1000–1000. Changes the width of all characters in the font
302 by horizontally
303 expanding or contracting the white space within the letter.
304 The width of stems is unchanged. Characters without interior
305 white space are usually unchanged.
306 </dd>
307 <dt>Descender depth (YTDE)</dt>
308 <dd>
309 Range -602–1000. Changes the length of the descenders on letters like
310 <b>j</b>, <b>p</b>, <b>q</b>. Lower numbers make the descender longer,
311 higher numbers shorter. A few uppercase and small cap letters (like <b>J</b>) are
312 also affected by this axis, and a few symbols (like the Tironian <b>et</b>
313 sign <b>⁊</b>)
314 </dd>
315 <dt>Figure height (YTFI)</dt>
316 <dd>
317 Range -1000–588. Changes the height of lining figures (like 01234)
318 by varying the amount of interior white space. Old-style figures
319 (like <span class="oldstyle">01234</span>) are not affected, since
320 these should harmonize with lowercase letters.
321 </dd>
322 <dt>Thick stroke width (XOPQ)</dt>
323 <dd>
324 Range -456–1000. Changes the width of thick strokes. These are usually
325 verticals (in letters like <b>d</b>, <b>f</b>, <b>H</b>, <b>O</b>),
326 but sometimes diagonals in letters like <b>x</b>, <b>A</b>, or
327 even thick horizontals in letters like <b class="oldstyle">2</b>.
328 </dd>
329 <dt>Thin stroke width (YOPQ)</dt>
330 <dd>
331 Range -1000–600. Changes the width of thin strokes. These are usually
332 horizontals (in letters like <b>p</b>, <b>H</b>), but also diagonals
333 in letters like <b>x</b>, <b>A</b>, and occasionally even verticals
334 (e.g. in <b>N</b>). This axis also changes the width of serifs in
335 upper- and lowercase letters.
336 </dd>
337 <dt>x-height (YTLX)</dt>
338 <dd>
339 Range -895–1000. Changes the x-height of lowercase and <span class="small-caps">small cap</span> letters—that is,
340 the height of the letter <b>x</b> and portions of letters
341 (for example, the bowl of <b>b</b>) at that same height. The absolute
342 height or depth of ascenders and descenders is not affected. This
343 axis also affects old-style numbers like <b class="oldstyle">01234</b>.
344 </dd>
345 </dl>
346 </div>
347 <script src="./webfiles/jquery.js"></script>
348 <script src="./webfiles/jquery-ui.js"></script>
349 <script src="./webfiles/Elstob-parametric-demo.js" type="text/javascript"></script>
350 </body>
351 </html>