Hi,

the EmWidth and ExHeight values for Metapost result always in the same result independant of the font size unlike the TeX values which change with different font sizes.

The BodyFontSize value on the other hand behaves as expected and produces the same results as \bodyfontsize.

\startbuffer[sizes-tex]
draw fullcircle scaled \the\emwidth     \space withcolor "red"   ;
draw fullcircle scaled \the\exheight    \space withcolor "green" ;
draw fullcircle scaled \the\bodyfontsize\space withcolor "blue"  ;
\stopbuffer

\startbuffer[sizes-mp]
draw fullcircle scaled EmWidth      withcolor "red"   ;
draw fullcircle scaled ExHeight     withcolor "green" ;
draw fullcircle scaled BodyFontSize withcolor "blue" ;
\stopbuffer

\starttext

\dontleavehmode
\processMPbuffer[sizes-tex]
\processMPbuffer[sizes-mp]

\switchtobodyfont[20pt]

\dontleavehmode
\processMPbuffer[sizes-tex]
\processMPbuffer[sizes-mp]

\stoptext

Wolfgang

Attachment: test.pdf
Description: Adobe PDF document

\startbuffer[sizes-tex]
draw fullcircle scaled \the\emwidth     \space withcolor "red"   ;
draw fullcircle scaled \the\exheight    \space withcolor "green" ;
draw fullcircle scaled \the\bodyfontsize\space withcolor "blue"  ;
\stopbuffer

\startbuffer[sizes-mp]
draw fullcircle scaled EmWidth      withcolor "red"   ;
draw fullcircle scaled ExHeight     withcolor "green" ;
draw fullcircle scaled BodyFontSize withcolor "blue" ;
\stopbuffer

\starttext

\dontleavehmode
\processMPbuffer[sizes-tex]
\processMPbuffer[sizes-mp]

\switchtobodyfont[20pt]

\dontleavehmode
\processMPbuffer[sizes-tex]
\processMPbuffer[sizes-mp]

\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to