Am 28.04.2014 um 13:46 schrieb Flavien Lambert
Hi everyone, could you tell me how to use the Ubuntu font for the math command \max in the following example?
\definefontfamily [mainface] [sans] [Ubuntu] [regularfont=ubuntu,italicfont=ubuntuitalic,boldfont=ubuntubold] \definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercaseitalic,tf=name:ubuntu] \definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]
\starttext $ abc \max$ abc max \stoptext
\definefontfamily [mainface] [sans] [Ubuntu] \definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercaseitalic] \definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercasenormal] \definefontfamily [mainface] [math] [Latin Modern Math] \setupbodyfont[mainface] \starttext $ abc \max$ abc max \stoptext BTW: Why do you set the upright, italic etc. styles by hand?
I am also interesting by knowing where I can find all the features "preset=math:" possible.
The presets are defined in font-eel.mkvi with the \definefontfamilypreset command. Wolfgang