From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42291 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX and precise font sizes Date: Thu, 10 Jul 2008 07:48:50 +0200 Message-ID: <115224fb0807092248w1b6d9ecelc4b5dd359989c984@mail.gmail.com> References: <661F56F4-974A-46F5-BEA2-4A7DB08C0833@getalime.ru> <83e5fb980807091602y507f0489u54e0f0c43eca2883@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215669029 9109 80.91.229.12 (10 Jul 2008 05:50:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2008 05:50:29 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 10 07:51:16 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 1KGp3h-0007a3-KX for gctc-ntg-context-518@m.gmane.org; Thu, 10 Jul 2008 07:51:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EEA0B1FBBA; Thu, 10 Jul 2008 07:50:19 +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 22417-05-3; Thu, 10 Jul 2008 07:49:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46E901FCE8; Thu, 10 Jul 2008 07:49:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E86C1FCE8 for ; Thu, 10 Jul 2008 07:49:32 +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 22417-05-2 for ; Thu, 10 Jul 2008 07:48:56 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.152]) by ronja.ntg.nl (Postfix) with ESMTP id 398B31FBBA for ; Thu, 10 Jul 2008 07:48:55 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so2096463ywm.74 for ; Wed, 09 Jul 2008 22:48:50 -0700 (PDT) Original-Received: by 10.150.202.3 with SMTP id z3mr13791057ybf.224.1215668930275; Wed, 09 Jul 2008 22:48:50 -0700 (PDT) Original-Received: by 10.150.96.3 with HTTP; Wed, 9 Jul 2008 22:48:50 -0700 (PDT) In-Reply-To: <83e5fb980807091602y507f0489u54e0f0c43eca2883@mail.gmail.com> Content-Disposition: inline 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:42291 Archived-At: On Thu, Jul 10, 2008 at 1:02 AM, Diego Depaoli wrote: > 2008/7/10 Neiaglov Dmitry : >> Hello there! >> >> I was googling around, > you mis-googled :-) > http://www.google.com/cse?q=gentium&cx=016640200293943433883:w-6slqs1kjg&cof=FORID:0&sa=Special+Search > >> OpenType fonts with ConTeXt and XeTeX with precise sizes in points. I >> am trying to create a subsection style with Gentium 24pt. > > following code should be work. > > \starttypescript[serif][gentium-basic] > \definefontsynonym[Serif] [GentiumBasic] > \definefontsynonym[SerifItalic] [GentiumBasicItalic] > \definefontsynonym[SerifBold] [GentiumBasicBold] > \definefontsynonym[SerifBoldItalic][GentiumBasicBoldItalic] > \stoptypescript > > \starttypescript[serif][gentium-basic] > \definefontsynonym[GentiumBasic] [file:GenBasR] [features=default] > \definefontsynonym[GentiumBasicItalic] [file:GenBasI] [features=default] > \definefontsynonym[GentiumBasicBold] [file:GenBasB] [features=default] > \definefontsynonym[GentiumBasicBoldItalic][file:GenBasBI][features=default] > \stoptypescript > > \starttypescript[gentium-basic] > \definetypeface[gentium][rm][serif][gentium-basic][default] > \stoptypescript > \usetypescript[gentium-basic] \setupbodyfont[gentium] > \setupcolors[state=start] > \def\subsectfont{\setupbodyfont[gentium,24pt]} > \setuphead [subsection] > [alternative=inmargin, > numbercolor=orange, > style=\subsectfont] > \definefont[subsectfont][Serif at 24pt] % Gentium as bodyfont or \definefont[subsectfont][GentiumBasic at 24pt] % Gentium is not the bodyfont and \setuphead [subsection] [alternative=inmargin, numbercolor=orange, style=subsectfont] > \starttext > > \section {a section} > \subsection {a subsection} > \input knuth > > \stoptext > > Cheers > > -- > Diego Depaoli Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________