[NTG-context] Scaling down symbols and emojis

User 19087 se.user19087 at gmail.com
Thu Jan 17 14:30:47 CET 2019


On Wed, Jan 16, 2019 at 4:24 PM Wolfgang Schuster
<wolfgang.schuster.lists at gmail.com> wrote:
> > % Which factor should I use to match \tfxx?
> > \symbol[ShortForty]
> > \scale[factor=4]{\symbol[ShortForty]}
> x = 0.8
> xx = 0.6

That's what the ConTeXt Reference Manual also says, but that doesn't
seem to match what ConTeXt does. The 'x' ratio is 0.835 and the 'xx'
ratio is 0.6667. The 'm' ratio is 0.802 and the 'n' ratio is 0.601,
which is "close enough".

\definefontsize[m]
\definefontsize[n]

\setupbodyfontenvironment
  [default]
  [m=0.8,
   n=0.6,
  ]

\starttext
{\tfx m}{\tfm m}m
{\tfxx m}{\tfn m}m

\setbox\scratchbox\hbox{m}
\the\ht\scratchbox
\setbox\scratchbox\hbox{\tfx m}
\the\ht\scratchbox
\setbox\scratchbox\hbox{\tfxx m}
\the\ht\scratchbox

\setbox\scratchbox\hbox{m}
\the\ht\scratchbox
\setbox\scratchbox\hbox{\tfm m}
\the\ht\scratchbox
\setbox\scratchbox\hbox{\tfn m}
\the\ht\scratchbox
\stoptext


More information about the ntg-context mailing list