diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-02-19 17:46:26 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-02-19 17:46:26 +0100 |
commit | b5ef32a9a6a99e134e669b702e89a55fbabf5306 (patch) | |
tree | e0b152cee73c98ea43d93e707dad31bfdebc1ef0 /doc/context/sources | |
parent | 601e63e757d4cf40d5923cee4b6b3debff57364c (diff) | |
download | context-b5ef32a9a6a99e134e669b702e89a55fbabf5306.tar.gz |
2017-02-19 17:20:00
Diffstat (limited to 'doc/context/sources')
4 files changed, 60 insertions, 1 deletions
diff --git a/doc/context/sources/general/fonts/fonts/fonts-extensions.tex b/doc/context/sources/general/fonts/fonts/fonts-extensions.tex index 89257f1f5..4740b40b2 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-extensions.tex +++ b/doc/context/sources/general/fonts/fonts/fonts-extensions.tex @@ -294,6 +294,22 @@ and right. Keep in mind that this feature blocks colored text. \stopsection +\startsection[title=Math italics] + +In the traditional \TEX\ fonts the width of a glyph was not the real width because +one had to add the italic correction to it. The engine then juggles a bit with +these properties. If you run into fonts that are designed this way, you can do this: + +\starttyping +\definefontfeature[mathextra][italicwidths=yes] % fix latin modern +\stoptyping + +This might make \type {$\left|V\right| = \left|W\right|$} look better for such +fonts. Of course there can be side effects because these fonts assume a +traditional engine. + +\stopsection + \startsection[title=Slanting] This features (as well as the one described in the next section) are seldom used diff --git a/doc/context/sources/general/fonts/fonts/fonts-features.tex b/doc/context/sources/general/fonts/fonts/fonts-features.tex index c0b7538ab..f6a12c30d 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-features.tex +++ b/doc/context/sources/general/fonts/fonts/fonts-features.tex @@ -1,4 +1,4 @@ -% language=uk +language=uk \startcomponent fonts-features diff --git a/doc/context/sources/general/manuals/luatex/luatex-math.tex b/doc/context/sources/general/manuals/luatex/luatex-math.tex index b19f5823f..3c29d9609 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-math.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-math.tex @@ -613,6 +613,30 @@ shifts to the left. A \type {\mathnolimitsmode} larger that 15 is considered to be a factor for the subscript correction. This feature can be handy when experimenting. +\section{Math italic mess} + +The \type {\mathitalicsmode} parameter can be set to~1 to force italic correction +before noads that represent some more complex structure (read: everything +that is not an ord, bin, rel, open, close, punct or inner). + +\starttexdefinition Whatever #1 + \NC \type{\mathitalicsmode=#1} + \NC \mathitalicsmode#1\ruledhbox{$\left|T^1\right|$} + \NC \mathitalicsmode#1\ruledhbox{$\left|T\right|$} + \NC \mathitalicsmode#1\ruledhbox{$T+1$} + \NC \mathitalicsmode#1\ruledhbox{$T{1\over2}$} + \NC \mathitalicsmode#1\ruledhbox{$T\sqrt{1}$} + \NR \NR +\stoptexdefinition + +\starttabulate[|c|c|c|c|c|c|] + \Whatever0 + \Whatever1 +\stoptabulate + +This kind of parameters relate to the fact that italic correction in \OPENTYPE\ +math is bound to fuzzy rules. So, control is the solution. + \section{Math spacing setting} Besides the parameters mentioned in the previous sections, there are also 64 new diff --git a/doc/context/sources/general/manuals/math/math-spacing.tex b/doc/context/sources/general/manuals/math/math-spacing.tex index 0acd07b33..3412a3abc 100644 --- a/doc/context/sources/general/manuals/math/math-spacing.tex +++ b/doc/context/sources/general/manuals/math/math-spacing.tex @@ -373,6 +373,25 @@ an integral are moved right and left half of the italic correction. \stopsection +\startsection[title=Bad fonts] + +There might be fonts out there where the italic correction is supposed to be +added to the width of a glyph. In that case the following trick can be tried: + +\starttyping +\definefontfeature[mathextra][italicwidths=yes] % fix latin modern +\stoptyping + +in which case the following might look better: + +\starttyping +$\left|V\right| = \left|W\right|$ +\stoptyping + +Of course better is to fix the font. + +\stopsection + \stopchapter \stopcomponent |