From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42286 Path: news.gmane.org!not-for-mail From: "Diego Depaoli" Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX and precise font sizes Date: Thu, 10 Jul 2008 01:02:17 +0200 Message-ID: <83e5fb980807091602y507f0489u54e0f0c43eca2883@mail.gmail.com> References: <661F56F4-974A-46F5-BEA2-4A7DB08C0833@getalime.ru> 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 1215644639 22207 80.91.229.12 (9 Jul 2008 23:03:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2008 23:03:59 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 10 01:04:45 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 1KGiiK-0006vv-Qx for gctc-ntg-context-518@m.gmane.org; Thu, 10 Jul 2008 01:04:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59CFF1FCD0; Thu, 10 Jul 2008 01:03:51 +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 07811-03-6; Thu, 10 Jul 2008 01:02:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EBD471FADF; Thu, 10 Jul 2008 01:02:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 56C371FADB for ; Thu, 10 Jul 2008 01:02:53 +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 05754-03 for ; Thu, 10 Jul 2008 01:02:19 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by ronja.ntg.nl (Postfix) with ESMTP id 743C81FB82 for ; Thu, 10 Jul 2008 01:02:18 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id l26so1318793fgb.8 for ; Wed, 09 Jul 2008 16:02:18 -0700 (PDT) Original-Received: by 10.86.60.15 with SMTP id i15mr7789385fga.8.1215644537849; Wed, 09 Jul 2008 16:02:17 -0700 (PDT) Original-Received: by 10.86.52.18 with HTTP; Wed, 9 Jul 2008 16:02:17 -0700 (PDT) In-Reply-To: <661F56F4-974A-46F5-BEA2-4A7DB08C0833@getalime.ru> 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:42286 Archived-At: 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] \setupcolors[state=start] \def\subsectfont{\setupbodyfont[gentium,24pt]} \setuphead [subsection] [alternative=inmargin, numbercolor=orange, style=\subsectfont] \starttext \section {a section} \subsection {a subsection} \input knuth \stoptext Cheers -- Diego Depaoli ___________________________________________________________________________________ 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 ___________________________________________________________________________________