diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-02-17 10:31:56 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-02-17 10:31:56 +0100 |
commit | b14f992ef5f4e868c9959b174278c86516d60dbc (patch) | |
tree | 28587bb46c025ea7b0d27ba93f09c93dcf53c73a /doc/context/sources/general/fonts | |
parent | 95a1799032dc61dbca4a11e495be34b4397c8fec (diff) | |
download | context-b14f992ef5f4e868c9959b174278c86516d60dbc.tar.gz |
2017-02-17 10:23:00
Diffstat (limited to 'doc/context/sources/general/fonts')
-rw-r--r-- | doc/context/sources/general/fonts/fonts/fonts-math.tex | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/context/sources/general/fonts/fonts/fonts-math.tex b/doc/context/sources/general/fonts/fonts/fonts-math.tex index 2d7d26dfb..766204937 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-math.tex +++ b/doc/context/sources/general/fonts/fonts/fonts-math.tex @@ -1,5 +1,19 @@ % language=uk +% todo: + +% \starttext +% \setupbodyfont[cambria] +% \setupmathematics[kernpairs=yes] +% $abcd$ % 𝑎𝑏 +% \stoptext +% +% kernpairs = { +% [0x1D44E] = { +% [0x1D44F] = 1000, -- 𝑎𝑏 demo +% } +% }, + \startcomponent fonts-math \environment fonts-environment @@ -1043,6 +1057,37 @@ The defaults come out as: \stopsection +\startsection[title=Kerning] + +Math kerns in \OPENTYPE\ are quite advanced and use a staircase model left +and|/|or right of characters. However, hardly any math font implements them +(extensively). Therefore we provide a way to fine tune your fonts to your +preferences. You can test this mechanism by patching \type {cambria-math.lfg} by +adding this to the mathematics subtable: + +\starttyping +kernpairs = { + [0x1D44E] = { + [0x1D44F] = 1000, -- 𝑎𝑏 demo + } +} +\stoptyping + +After that, the next example should work: + +\starttyping +\starttext + \setupbodyfont[cambria] + \setupmathematics[kernpairs=yes] + $abcd$ +\stoptext +\stoptyping + +There should be a gap between the $𝑎$ and $𝑏$. It is not shown here because I +don't want to mess up my goodie file. + +\stopsection + \stopchapter \stopcomponent |