ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \fontrange and \currentfontscale
@ 2004-04-04 23:04 Adam Lindsay
  0 siblings, 0 replies; only message in thread
From: Adam Lindsay @ 2004-04-04 23:04 UTC (permalink / raw)


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.
<to be read again> 
                   s
<argument> s
            a
\dodofontrange ...rentfontscale \bodyfontsize ) #2
                                                  #1\expandafter
\gobbleunti...

which I interpret as \currentfontscale only being expanded as "sa 1.200"
instead of a number. 

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

cheers,
adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl@comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-04 23:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-04 23:04 \fontrange and \currentfontscale Adam Lindsay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).