22 Jan
2014
22 Jan
'14
6:42 p.m.
On 01/21/2014 10:01 PM, Wolfgang Schuster wrote:
You can use the \fontalternative command to check for the current alternative (upright, italic, bold etc.) of the font.
\def\Test {\processaction [\fontalternative] [ tf=>Upright, it=>Italic, sl=>Slanted, bf=>Bold, bi=>Bolditalic, bs=>Boldslanted, unknown=>Unknown fontalternative]}
\starttext “\Test” {\it “\Test”} {\bs “\Test”} {\sc “\Test”} \stoptext
Many thanks for the solution and your excellent explanation, Wolfgang. This was exactly what I needed. Many thanks again, Pablo -- http://www.ousia.tk