summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/math/math-suboptimal.tex
blob: 9f4e947305aa79e2a8954992cb4a970985f4b4f4 (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
\environment math-layout

\startcomponent math-subtoptimal

\startchapter[title=Suboptimal]

\startsection[title=Extensibles]

Extensibles are implemented as follows: we start with the default shape, and when
that doesn't cover the body of text, a next size is chosen. When we run out of
sizes, a glyph is made from snippets (often a start glyph, overlapping middle
pieces and an end piece. Of course a font needs to provide these variants and
snippets.

However, the quality of the coverage can differ per font. Here we show how Latin
Modern, Pagella, Cambria, Lucida and Dejavu look like:

\starttexdefinition ShowSample #1#2
    \start
        \showglyphs
        \switchtobodyfont [#1]
        \dontleavehmode#2: \dorecurse{50}{$\vec{\blackrule[width=##1pt]}$\space}\unskip
        \par
    \stop
\stoptexdefinition

\ShowSample{modern}  {Latin Modern} \blank
\ShowSample{pagella} {Pagella}      \blank
\ShowSample{cambria} {Cambria}      \blank
\ShowSample{lucidaot}{Lucida}       \blank
\ShowSample{dejavu}  {Dejavu}

Of course fonts can be improved (or patched) and these samples might come out
better compared to previous renderings.

\stopsection

\stopchapter

\stopcomponent