From: Oliver Buerschaper <oliver.buerschaper@mpq.mpg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Getting font parameters in MkIV
Date: Tue, 29 Dec 2009 18:10:55 +0100 [thread overview]
Message-ID: <405FB456-7584-49E5-8D96-A4A2AF405834@mpq.mpg.de> (raw)
In-Reply-To: <03D33D4E-2E8D-4C4B-834C-3033D963B8E9@mpq.mpg.de>
>> ---
>> \usetypescript[cambria]
>> \setupbodyfont[cambria]
>>
>> \def\defaultrulethickness{\the\fontdimen8\textfont3\relax}
>>
>>
>>
>> \starttext
>>
>> \the\defaultrulethickness
>>
>> \stoptext
>> ---
>>
>> which used to work in the old MkII days.
>
> That is with the first two lines commented out :-)
I was finally able to come up with this:
---
\usetypescript[cambria]
\setupbodyfont[cambria]
\starttext
FractionRuleThickness (in display style): \the\Umathfractionrule\displaystyle
FractionRuleThickness (in script style): \the\Umathfractionrule\scriptstyle
etc.
\stoptext
---
This should work with any font in MkIV. More parameters can be found in the LuaTeX manual at
http://www.luatex.org/svn/trunk/manual/luatexref-t.pdf
in section 5.4 on pages 114f. (Boy, did it take me time to discover this! Seriously.)
Oliver
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2009-12-29 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-26 14:22 Oliver Buerschaper
2009-12-26 15:13 ` Oliver Buerschaper
2009-12-29 17:10 ` Oliver Buerschaper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=405FB456-7584-49E5-8D96-A4A2AF405834@mpq.mpg.de \
--to=oliver.buerschaper@mpq.mpg.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).