# [NTG-context] \fontrange and \currentfontscale

Mon, 5 Apr 2004 00:04:00 +0100

Hi Hans, TeXnicians.

I thought I'd take another look at the \fontrange macros (commented) at
the beginning of font-ini. I think they might be one way of adapting
different optical sizes for Unicode fonts.

I'm trying to work in the current scaling, but I run into some pure
dimension math and expansion problems that are way beyond my skills. I
was hoping someone might be able to give me a push in the right direction:

\def\dodofontrange#1 #2 %
{\ifdim\dimexpr(\currentfontscale\bodyfontsize) #2%
...

results in:
! Missing = inserted for \ifdim.
s
<argument> s
a
\dodofontrange ...rentfontscale \bodyfontsize ) #2
#1\expandafter
\gobbleunti...

which I interpret as \currentfontscale only being expanded as "sa 1.200"

At this point I can only make progress by blind experimentation. Can
anyone else offer a clue?

cheers,