Baskervald ADF Virtual Math Fonts
Hello,
Replacing certain symbols in a math font with a text font is very easy with the fallback
mechanism and the \definefallbackfamily command makes things even simpler.
The command \definefallbackfamily seems not to be a typescript-level command.
You need a newer version of ConTeXt to get that command. Ok. You may also answer my question: Let us consider the statememt: \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [\check=yes,force=yes] I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs from Baskervald italic having the same code.” But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a. How do you say: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs 0x61-0x7a (text a-z) from Baskervald italic”? For example something like: \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes] Thank you, Joas
Hi Joas,
I do not have that font to try (and sorry if I misunderstand the
question), but the following works to get Minion italic as
"lowercaseitalic" and so on instead of Pagella. Maybe using the names
instead of the glyph ranges work for you aswell?
\definefontfamily [mainface] [rm] [Minion Pro][opticalsize=yes]
\definefontfamily [mainface] [ss] [Myriad Pro][opticalsize=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:uppercasenormal] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:uppercaseitalic] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:lowercasenormal] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:lowercaseitalic] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:digitsnormal] [force=yes]
\definefontfamily [mainface] [math] [TeX Gyre Pagella Math]
Best regards, Mikael
On Fri, Apr 18, 2014 at 8:20 AM,
Hello,
Replacing certain symbols in a math font with a text font is very easy with the fallback
mechanism and the \definefallbackfamily command makes things even simpler.
The command \definefallbackfamily seems not to be a typescript-level command.
You need a newer version of ConTeXt to get that command.
Ok. You may also answer my question:
Let us consider the statememt:
\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [\check=yes,force=yes]
I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z)
of the source font with the glyphs from Baskervald italic having the same code.”
But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.
How do you say: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of
the source font with the glyphs 0x61-0x7a (text a-z) from Baskervald italic”?
For example something like:
\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]
Thank you, Joas
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Am 18.04.2014 um 08:38 schrieb Mikael P. Sundqvist
\definefallbackfamily [mainface] [math] [Minion Pro] [math:uppercasenormal] [force=yes]
1. You don’t need “force=yes” because this a default setting. 2. When you want additional setups you have to change the fourth argument to \definefallbackfamily […] […] […] [preset=math:uppercasenormal,force=yes] because \definefallbackfamily […] […] […] [math:uppercasenormal] is only a simpler way to write \definefallbackfamily […] […] […] [preset=math:uppercasenormal] This is possible because I can check if the argument is a assignment or a keyword and when you have a keyword I use it as argument for the preset key. Wolfgang
Thank you for the clarification, Wolfgang.
I think this is a really nice feature.
Best regards, Mikael
On Fri, Apr 18, 2014 at 4:28 PM, Wolfgang Schuster
Am 18.04.2014 um 08:38 schrieb Mikael P. Sundqvist
: \definefallbackfamily [mainface] [math] [Minion Pro] [math:uppercasenormal] [force=yes]
1. You don’t need “force=yes” because this a default setting.
2. When you want additional setups you have to change the fourth argument to
\definefallbackfamily […] […] […] [preset=math:uppercasenormal,force=yes]
because
\definefallbackfamily […] […] […] [math:uppercasenormal]
is only a simpler way to write
\definefallbackfamily […] […] […] [preset=math:uppercasenormal]
This is possible because I can check if the argument is a assignment or a keyword and when you have a keyword I use it as argument for the preset key.
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Am 18.04.2014 um 08:20 schrieb joasyannick@gmail.com:
Ok. You may also answer my question:
Let us consider the statememt:
\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [\check=yes,force=yes]
I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs from Baskervald italic having the same code.”
But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a.
How do you say: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs 0x61-0x7a (text a-z) from Baskervald italic”?
For example something like:
\definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes]
\definefontfallback [baskervaldmath] [file:baskervaldadfstditalic] [lowercasenormal] [offset=lowercaseitalic,force=yes] %\definefontfallback [baskervaldmath] [file:baskervaldadfstditalic] [uppercasenormal] [offset=uppercaseitalic,force=yes] \starttypescript [math] [baskervald] \loadfontgoodies[texgyre] \definefontsynonym [MathRoman] [file:texgyre-termes-math-regular.otf] [features=math\mathsizesuffix,fallbacks=baskervaldmath] \stoptypescript \definetypeface [baskervald] [rm] [serif] [termes] [default] \definetypeface [baskervald] [mm] [math] [baskervald] [default] \setupbodyfont[termes] \starttext \math{ABC abc} \setupbodyfont[baskervald] \math{ABC abc} \stoptext Wolfgang
participants (3)
-
joasyannick@gmail.com
-
Mikael P. Sundqvist
-
Wolfgang Schuster