math-suboptimal.tex /size: 1229 b    last modification: 2021-10-28 13:50
1% language=us runpath=texruns:manuals/math
2\environment math-layout
3
4\startcomponent math-subtoptimal
5
6\startchapter[title=Suboptimal]
7
8\startsection[title=Extensibles]
9
10Extensibles are implemented as follows: we start with the default shape, and when
11that doesn't cover the body of text, a next size is chosen. When we run out of
12sizes, a glyph is made from snippets (often a start glyph, overlapping middle
13pieces and an end piece. Of course a font needs to provide these variants and
14snippets.
15
16However, the quality of the coverage can differ per font. Here we show how Latin
17Modern, Pagella, Cambria, Lucida and Dejavu look like:
18
19\starttexdefinition ShowSample #1#2
20    \start
21        \showglyphs
22        \switchtobodyfont [#1]
23        \dontleavehmode#2: \dorecurse{50}{$\vec{\blackrule[width=##1pt]}$\space}\unskip
24        \par
25    \stop
26\stoptexdefinition
27
28\ShowSample{modern}  {Latin Modern} \blank
29\ShowSample{pagella} {Pagella}      \blank
30\ShowSample{cambria} {Cambria}      \blank
31\ShowSample{lucidaot}{Lucida}       \blank
32\ShowSample{dejavu}  {Dejavu}
33
34Of course fonts can be improved (or patched) and these samples might come out
35better compared to previous renderings.
36
37\stopsection
38
39\stopchapter
40
41\stopcomponent
42