From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55381 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: Getting font parameters in MkIV Date: Tue, 29 Dec 2009 18:10:55 +0100 Message-ID: <405FB456-7584-49E5-8D96-A4A2AF405834@mpq.mpg.de> References: <1B390CEB-4DE6-4EDD-8E68-CCC837B48704@mpq.mpg.de> <03D33D4E-2E8D-4C4B-834C-3033D963B8E9@mpq.mpg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262106677 16988 80.91.229.12 (29 Dec 2009 17:11:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Dec 2009 17:11:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 29 18:11:10 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NPfb8-0000zN-7L for gctc-ntg-context-518@m.gmane.org; Tue, 29 Dec 2009 18:11:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4011C9BD1; Tue, 29 Dec 2009 18:11:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BvQpOyHzFSCW; Tue, 29 Dec 2009 18:11:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EA688C9BC4; Tue, 29 Dec 2009 18:11:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 273E3C9BC4 for ; Tue, 29 Dec 2009 18:11:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ENkdbJbIYhCt for ; Tue, 29 Dec 2009 18:10:59 +0100 (CET) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by balder.ntg.nl (Postfix) with ESMTP id A827BC9BA3 for ; Tue, 29 Dec 2009 18:10:59 +0100 (CET) Original-Received: from [192.168.178.23] (e179165245.adsl.alicedsl.de [85.179.165.245]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id nBTHAv3O979028 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 29 Dec 2009 18:10:59 +0100 In-Reply-To: <03D33D4E-2E8D-4C4B-834C-3033D963B8E9@mpq.mpg.de> X-Mailer: Apple Mail (2.1077) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55381 Archived-At: >> --- >> \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 ___________________________________________________________________________________