From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42284 Path: news.gmane.org!not-for-mail From: Neiaglov Dmitry Newsgroups: gmane.comp.tex.context Subject: XeTeX and precise font sizes Date: Thu, 10 Jul 2008 02:13:09 +0400 Message-ID: <661F56F4-974A-46F5-BEA2-4A7DB08C0833@getalime.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215641705 14058 80.91.229.12 (9 Jul 2008 22:15:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2008 22:15:05 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 10 00:15:51 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KGhwu-00016T-9z for gctc-ntg-context-518@m.gmane.org; Thu, 10 Jul 2008 00:15:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5AF821FCE9; Thu, 10 Jul 2008 00:14:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00836-02-11; Thu, 10 Jul 2008 00:13:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0792F1FD47; Thu, 10 Jul 2008 00:13:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B5E811FCE9 for ; Thu, 10 Jul 2008 00:13:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02356-01-3 for ; Thu, 10 Jul 2008 00:13:12 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by ronja.ntg.nl (Postfix) with ESMTP id 99A551FD47 for ; Thu, 10 Jul 2008 00:13:11 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id u40so129869ugc.50 for ; Wed, 09 Jul 2008 15:13:11 -0700 (PDT) Original-Received: by 10.66.218.15 with SMTP id q15mr787272ugg.77.1215641591035; Wed, 09 Jul 2008 15:13:11 -0700 (PDT) Original-Received: from ?192.168.1.100? ( [213.141.137.58]) by mx.google.com with ESMTPS id k1sm2620693ugf.21.2008.07.09.15.13.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Jul 2008 15:13:10 -0700 (PDT) X-Mailer: Apple Mail (2.926) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42284 Archived-At: Hello there! I was googling around, but couldn't really figure out how to use OpenType fonts with ConTeXt and XeTeX with precise sizes in points. I am trying to create a subsection style with Gentium 24pt. I am creating a typeface like it's recommended in the documentation: \definetypeface [Gentium][rm][Xserif][Gentium] Then I create my own subsection style: \setuphead [subsection] [alternative=inmargin, numbercolor=orange, style=\Gentium] So far so good, but it actually types the subsection out with some pre- determined font size. What I'm trying to do is get my subsections at the size of, say, precisely 24 pt. Stuff like \definetypeface [Gentium][rm][Xserif][Gentium] \definefont [Subs][Gentium at 24pt] apparently invokes non-XeTeX font routines (pardon my ignorance): kpathsea: Running mktextfm subsections mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input subsections This is METAFONT, Version 2.71828 (Web2C 7.5.6) kpathsea: Running mktexmf subsections ! I can't find file `subsections'. The best I was able to get was adding rscale \definetypeface [Gentium][rm][Xserif][Gentium][rscale=1.4] which is bad for two reasons: first, it's not logically correct, since I am planning to use my typeface for different sizes throughout the document, and second, I really want to control my sizes in points. Thanks in advance, Dima ___________________________________________________________________________________ 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 ___________________________________________________________________________________