diff options
Diffstat (limited to 'tex/context/fonts/mkiv')
-rw-r--r-- | tex/context/fonts/mkiv/bonum-math.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/dejavu-math.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/ebgaramond.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/kpfonts-math.lfg | 38 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/libertinus-math.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/lm.lfg | 6 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/lucida-opentype-math.lfg | 12 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/minion-math.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/pagella-math.lfg | 6 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/schola-math.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/stix-two-math.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/termes-math.lfg | 1 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/type-imp-kpfonts.mkiv | 101 | ||||
-rw-r--r-- | tex/context/fonts/mkiv/xits-math.lfg | 1 |
14 files changed, 162 insertions, 10 deletions
diff --git a/tex/context/fonts/mkiv/bonum-math.lfg b/tex/context/fonts/mkiv/bonum-math.lfg index 8daa047fb..2b35612e6 100644 --- a/tex/context/fonts/mkiv/bonum-math.lfg +++ b/tex/context/fonts/mkiv/bonum-math.lfg @@ -34,6 +34,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { diff --git a/tex/context/fonts/mkiv/dejavu-math.lfg b/tex/context/fonts/mkiv/dejavu-math.lfg index 44b5327de..a610b8596 100644 --- a/tex/context/fonts/mkiv/dejavu-math.lfg +++ b/tex/context/fonts/mkiv/dejavu-math.lfg @@ -29,6 +29,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { diff --git a/tex/context/fonts/mkiv/ebgaramond.lfg b/tex/context/fonts/mkiv/ebgaramond.lfg index 7a509893d..83459c68d 100644 --- a/tex/context/fonts/mkiv/ebgaramond.lfg +++ b/tex/context/fonts/mkiv/ebgaramond.lfg @@ -15,6 +15,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { diff --git a/tex/context/fonts/mkiv/kpfonts-math.lfg b/tex/context/fonts/mkiv/kpfonts-math.lfg new file mode 100644 index 000000000..f47cb6bb5 --- /dev/null +++ b/tex/context/fonts/mkiv/kpfonts-math.lfg @@ -0,0 +1,38 @@ +return { + name = "kpfonts-math", + version = "1.00", + comment = "KP Fonts.", + author = "Hans Hagen", + copyright = "ConTeXt development team", + mathematics = { + tweaks = { + aftercopying = { + { + tweak = "dimensions", + list = { + -- whatever + }, + }, + { + tweak = "fixprimes", + factor = 0.85, -- accent base height + smaller = true, -- replace multiples + scale = 0.75, -- glyph scale + fake = 0.75, -- replace multiples with this width proportion + -- keep = true, -- keep the text size prime (aka minute) + }, + { + tweak = "checkspacing", + }, + { + tweak = "addscripts", + }, + }, + }, + parameters = { + }, + alternates = { + -- italic = { feature = 'ss01', value = 1, comment = "Mathematical Alternative Lowercase Italic" }, + }, + }, +} diff --git a/tex/context/fonts/mkiv/libertinus-math.lfg b/tex/context/fonts/mkiv/libertinus-math.lfg index a0e9b5c23..b1ac2f894 100644 --- a/tex/context/fonts/mkiv/libertinus-math.lfg +++ b/tex/context/fonts/mkiv/libertinus-math.lfg @@ -21,6 +21,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { diff --git a/tex/context/fonts/mkiv/lm.lfg b/tex/context/fonts/mkiv/lm.lfg index 6039471e3..fe6f73659 100644 --- a/tex/context/fonts/mkiv/lm.lfg +++ b/tex/context/fonts/mkiv/lm.lfg @@ -64,8 +64,10 @@ return { }, }, { - tweak = "fixprimes", - factor = 0.85, + tweak = "fixprimes", + factor = 0.85, + smaller = true, + -- scale = 0.70, }, { tweak = "checkspacing", diff --git a/tex/context/fonts/mkiv/lucida-opentype-math.lfg b/tex/context/fonts/mkiv/lucida-opentype-math.lfg index 024284bd2..1c126c92c 100644 --- a/tex/context/fonts/mkiv/lucida-opentype-math.lfg +++ b/tex/context/fonts/mkiv/lucida-opentype-math.lfg @@ -52,12 +52,12 @@ return { }, }, { - tweak = "fixprimes", - factor = 0.85, - }, - { - tweak = "fakeprimes", - factor = 0.75, + tweak = "fixprimes", + factor = 0.85, -- accent base height + smaller = true, -- replace multiples + scale = 0.75, -- glyph scale + fake = 0.75, -- replace multiples with this width proportion + -- keep = true, -- keep the text size prime (aka minute) }, { tweak = "checkspacing", diff --git a/tex/context/fonts/mkiv/minion-math.lfg b/tex/context/fonts/mkiv/minion-math.lfg index 13d11edc6..064c567f4 100644 --- a/tex/context/fonts/mkiv/minion-math.lfg +++ b/tex/context/fonts/mkiv/minion-math.lfg @@ -34,6 +34,7 @@ return { aftercopying = { { tweak = "dimensions", + -- smaller = true, list = dimensions, }, { diff --git a/tex/context/fonts/mkiv/pagella-math.lfg b/tex/context/fonts/mkiv/pagella-math.lfg index 3926ae95b..7e0bb0b9d 100644 --- a/tex/context/fonts/mkiv/pagella-math.lfg +++ b/tex/context/fonts/mkiv/pagella-math.lfg @@ -59,8 +59,10 @@ return { }, }, { - tweak = "fixprimes", - factor = 0.85, + tweak = "fixprimes", + factor = 0.85, + smaller = true, + scale = 0.70, }, { tweak = "checkspacing", diff --git a/tex/context/fonts/mkiv/schola-math.lfg b/tex/context/fonts/mkiv/schola-math.lfg index 0a4d66892..9e1a014dd 100644 --- a/tex/context/fonts/mkiv/schola-math.lfg +++ b/tex/context/fonts/mkiv/schola-math.lfg @@ -27,6 +27,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { diff --git a/tex/context/fonts/mkiv/stix-two-math.lfg b/tex/context/fonts/mkiv/stix-two-math.lfg index cc09da04b..06427281c 100644 --- a/tex/context/fonts/mkiv/stix-two-math.lfg +++ b/tex/context/fonts/mkiv/stix-two-math.lfg @@ -30,6 +30,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { diff --git a/tex/context/fonts/mkiv/termes-math.lfg b/tex/context/fonts/mkiv/termes-math.lfg index 8752f0a3b..41d535ada 100644 --- a/tex/context/fonts/mkiv/termes-math.lfg +++ b/tex/context/fonts/mkiv/termes-math.lfg @@ -35,6 +35,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { diff --git a/tex/context/fonts/mkiv/type-imp-kpfonts.mkiv b/tex/context/fonts/mkiv/type-imp-kpfonts.mkiv new file mode 100644 index 000000000..77a7a0bb2 --- /dev/null +++ b/tex/context/fonts/mkiv/type-imp-kpfonts.mkiv @@ -0,0 +1,101 @@ +%D \module +%D [ file=type-kepler, +%D version=2021.11.16, +%D title=\CONTEXT\ Typescript Macros, +%D subtitle=Kepler Opentype, +%D author=Mikael Sundqvist & Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +% NOTA BENE: class features and goodies get expanded! + +\starttypescriptcollection[kpfonts-opentype] + + \doifunknownfontfeature {kp-sans-bold} {\definefontfeature[kp-sans-bold][boldened]} + + \starttypescript [kpfonts,kpfonts-light,kpfonts-bold,kpfonts-sans] + \loadfontgoodies[kpfonts-math] + \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default] [\s!features=\s!default] + \definetypeface [\typescriptone] [\s!ss] [\s!sans] [\typescriptone] [\s!default] [\s!features=\s!default] + \definetypeface [\typescriptone] [\s!tt] [\s!mono] [\typescriptone] [\s!default] [\s!features=\s!none] + \definetypeface [\typescriptone] [\s!mm] [\s!math] [\typescriptone] [\s!default] + % for the moment here: + % \setupmathrendering[\typescriptone][\s!it=\s!italic] + \quittypescriptscanning + \stoptypescript + + \starttypescript [\s!serif] [kpfonts,kpfonts-sans] + \definefontsynonym [\s!Serif] [\s!file:KpRoman-Regular.otf] + \definefontsynonym [\s!SerifBold] [\s!file:KpRoman-SemiBold.otf] + \definefontsynonym [\s!SerifItalic] [\s!file:KpRoman-Italic.otf] + \definefontsynonym [\s!SerifBoldItalic] [\s!file:KpRoman-SemiboldItalic.otf] + \definefontsynonym [\s!SerifSlanted] [\s!SerifItalic] + \definefontsynonym [\s!SerifBoldSlanted] [\s!SerifBoldItalic] + \stoptypescript + + \starttypescript [\s!serif] [kpfonts-light] + \definefontsynonym [\s!Serif] [\s!file:KpRoman-Light.otf] + \definefontsynonym [\s!SerifBold] [\s!file:KpRoman-Semibold.otf] + \definefontsynonym [\s!SerifItalic] [\s!file:KpRoman-LightItalic.otf] + \definefontsynonym [\s!SerifBoldItalic] [\s!file:KpRoman-SemiboldItalic.otf] + \definefontsynonym [\s!SerifSlanted] [\s!SerifItalic] + \definefontsynonym [\s!SerifBoldSlanted] [\s!SerifBoldItalic] + \stoptypescript + + \starttypescript [\s!serif] [kpfonts-bold] + \setups[\s!font:\s!fallback:\s!serif] + \definefontsynonym [\s!Serif] [\s!file:KpRoman-Regular.otf] + \definefontsynonym [\s!SerifBold] [\s!file:KpRoman-Bold.otf] + \definefontsynonym [\s!SerifItalic] [\s!file:KpRoman-Italic.otf] + \definefontsynonym [\s!SerifBoldItalic] [\s!file:KpRoman-BoldItalic.otf] + % \definefontsynonym [\s!SerifSlanted] [\s!SerifItalic] + % \definefontsynonym [\s!SerifBoldSlanted] [\s!SerifBoldItalic] + \stoptypescript + + \starttypescript [\s!sans] [kpfonts,kpfonts-sans,kpfonts-light,kpfonts-bold] + \setups[\s!font:\s!fallback:\s!sans] + \definefontsynonym [\s!Sans] [\s!file:KpSans-Regular.otf] + \definefontsynonym [\s!SansBold] [\s!file:KpSans-Bold.otf] + \definefontsynonym [\s!SansItalic] [\s!file:KpSans-Italic.otf] + \definefontsynonym [\s!SansBoldItalic] [\s!file:KpSans-BoldItalic.otf] + % \definefontsynonym [\s!SansSlanted] [\s!SansItalic] + % \definefontsynonym [\s!SansBoldSlanted] [\s!SansBoldItalic] + \stoptypescript + + \starttypescript [\s!mono] [kpfonts,kpfonts-sans,kpfonts-light,kpfonts-bold] + \setups[\s!font:\s!fallback:\s!mono] + \definefontsynonym [\s!Mono] [\s!file:KpMono-Regular.otf] + \definefontsynonym [\s!MonoBold] [\s!file:KpMono-Bold.otf] + \definefontsynonym [\s!MonoItalic] [\s!file:KpMono-Italic.otf] + \definefontsynonym [\s!MonoBoldItalic] [\s!file:KpMono-BoldItalic.otf] + % \definefontsynonym [\s!MonoSlanted] [\s!MonoItalic] + % \definefontsynonym [\s!MonoBoldSlanted] [\s!MonoBoldItalic] + \stoptypescript + + \starttypescript [\s!math] [kpfonts,kpfonts-bold] + \definefontsynonym [\s!MathRoman] [\s!file:KpMath-Regular.otf] [\s!features={\s!math\mathsizesuffix,mathextra},\s!goodies=kpfonts-math] + \definefontsynonym [\s!MathRomanBold] [\s!file:KpMath-Semibold.otf] [\s!features={\s!math\mathsizesuffix,mathextra},\s!goodies=kpfonts-math] + \stoptypescript + + \starttypescript [\s!math] [kpfonts-bold] + \definefontsynonym [\s!MathRoman] [\s!file:KpMath-Regular.otf] [\s!features={\s!math\mathsizesuffix,mathextra},\s!goodies=kpfonts-math] + \definefontsynonym [\s!MathRomanBold] [\s!file:KpMath-Bold.otf] [\s!features={\s!math\mathsizesuffix,mathextra},\s!goodies=kpfonts-math] + \stoptypescript + + \starttypescript [\s!math] [kpfonts-light] + \definefontsynonym [\s!MathRoman] [\s!file:KpMath-Light.otf] [\s!features={\s!math\mathsizesuffix,mathextra},\s!goodies=kpfonts-math] + \definefontsynonym [\s!MathRomanBold] [\s!file:KpMath-Regular.otf] [\s!features={\s!math\mathsizesuffix,mathextra},\s!goodies=kpfonts-math] + \stoptypescript + + \starttypescript [\s!math] [kpfonts-sans] + \definefontsynonym [\s!MathRoman] [\s!file:KpMath-Sans.otf] [\s!features={\s!math\mathsizesuffix,mathextra},\s!goodies=kpfonts-math] + \definefontsynonym [\s!MathRomanBold] [\s!file:KpMath-Sans.otf] [\s!features={\s!math\mathsizesuffix,lm-math-bold,mathextra},\s!goodies=kpfonts-math] + \stoptypescript + +\stoptypescriptcollection + +\endinput diff --git a/tex/context/fonts/mkiv/xits-math.lfg b/tex/context/fonts/mkiv/xits-math.lfg index f166afc80..f1f88705e 100644 --- a/tex/context/fonts/mkiv/xits-math.lfg +++ b/tex/context/fonts/mkiv/xits-math.lfg @@ -25,6 +25,7 @@ return { }, { tweak = "fixprimes", + -- smaller = true, factor = 0.85, }, { |