ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* current fontsize in both marks
@ 2009-03-18 12:48 Peter Rolf
  2009-03-18 13:00 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rolf @ 2009-03-18 12:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

for my overprinting macro I need the actual font size (no overprinting 
if size is greater 23pt). After searching and a lot of tries I found

\scaledfont (mkii)   and
\somefontsize (mkiv),

which seem to show the right values. Both macros are bound exclusively 
to only one mark. Is there a better (more generic and mark independent) way?


Peter

-- 
  "Es ist doch ein Trost,
   das Geldgier manchmal blöd macht."

             - Kottan in "Kottan ermittelt", Folge 9: "Die Einteilung" -



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: current fontsize in both marks
  2009-03-18 12:48 current fontsize in both marks Peter Rolf
@ 2009-03-18 13:00 ` Hans Hagen
  2009-03-18 13:37   ` Peter Rolf
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-03-18 13:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Rolf wrote:
> Hi,
> 
> for my overprinting macro I need the actual font size (no overprinting 
> if size is greater 23pt). After searching and a lot of tries I found
> 
> \scaledfont (mkii)   and
> \somefontsize (mkiv),
> 
> which seem to show the right values. Both macros are bound exclusively 
> to only one mark. Is there a better (more generic and mark independent) 
> way?

we can add

\def\somefontsize{\scaledfont}

to mkii

is there more?

(i'm not going to retrofit all 'improvements' from mkiv to mkii; for 
instance there are couple of speedups in mkiv helpers)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: current fontsize in both marks
  2009-03-18 13:00 ` Hans Hagen
@ 2009-03-18 13:37   ` Peter Rolf
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Rolf @ 2009-03-18 13:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen schrieb:
> Peter Rolf wrote:
>> Hi,
>>
>> for my overprinting macro I need the actual font size (no 
>> overprinting if size is greater 23pt). After searching and a lot of 
>> tries I found
>>
>> \scaledfont (mkii)   and
>> \somefontsize (mkiv),
>>
>> which seem to show the right values. Both macros are bound 
>> exclusively to only one mark. Is there a better (more generic and 
>> mark independent) way?
>
> we can add
>
> \def\somefontsize{\scaledfont}
>
> to mkii
>
sounds good.

> is there more?
>
no.

also i'm not far away from the point, where i finally skip mkii (too 
time-consuming to maintain both marks). currently mkii support is only a 
fallback in case of luatex problems (which i probably don't need anymore).

thanks Hans!

> (i'm not going to retrofit all 'improvements' from mkiv to mkii; for 
> instance there are couple of speedups in mkiv helpers)
>
> Hans
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________ 
>
> If your question is of interest to others as well, please add an entry 
> to the Wiki!
>
> maillist : ntg-context@ntg.nl / 
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________ 
>
>


-- 
  "Es ist doch ein Trost,
   das Geldgier manchmal blöd macht."

             - Kottan in "Kottan ermittelt", Folge 9: "Die Einteilung" -



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-18 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-18 12:48 current fontsize in both marks Peter Rolf
2009-03-18 13:00 ` Hans Hagen
2009-03-18 13:37   ` Peter Rolf

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).