From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42328 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX and precise font sizes Date: Thu, 10 Jul 2008 16:10:43 +0200 Message-ID: <6faad9f00807100710m7f1364a9x773ccff6d175cd5a@mail.gmail.com> References: <661F56F4-974A-46F5-BEA2-4A7DB08C0833@getalime.ru> <83e5fb980807091602y507f0489u54e0f0c43eca2883@mail.gmail.com> <43A763CD-CEBA-4381-9085-8D42CF064409@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 1215700567 12476 80.91.229.12 (10 Jul 2008 14:36:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2008 14:36:07 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 10 16:36:50 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 1KGxGD-0005V7-Uv for gctc-ntg-context-518@m.gmane.org; Thu, 10 Jul 2008 16:36:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AFBEE1FCF6; Thu, 10 Jul 2008 16:35:47 +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 18522-06-6; Thu, 10 Jul 2008 16:35:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D471A1FDCB; Thu, 10 Jul 2008 16:11:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 810001FDCA for ; Thu, 10 Jul 2008 16:11:20 +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 11906-03-11 for ; Thu, 10 Jul 2008 16:10:45 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.145]) by ronja.ntg.nl (Postfix) with ESMTP id D7FBC1FD19 for ; Thu, 10 Jul 2008 16:10:44 +0200 (CEST) Original-Received: by qw-out-1920.google.com with SMTP id 9so92653qwj.38 for ; Thu, 10 Jul 2008 07:10:43 -0700 (PDT) Original-Received: by 10.150.177.20 with SMTP id z20mr14507098ybe.223.1215699043366; Thu, 10 Jul 2008 07:10:43 -0700 (PDT) Original-Received: by 10.151.83.13 with HTTP; Thu, 10 Jul 2008 07:10:43 -0700 (PDT) In-Reply-To: <43A763CD-CEBA-4381-9085-8D42CF064409@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:42328 Archived-At: On Thu, Jul 10, 2008 at 8:50 AM, Neiaglov Dmitry wrote: >>> you mis-googled :-) >> http://www.google.com/cse?q=gentium&cx=016640200293943433883:w-6slqs1kjg&cof=FORID:0&sa=Special+Search > > I really couldn't think that problem was font-dependent :) > >> following code should be work. >> >> \starttypescript[serif][gentium-basic] >> \definefontsynonym[Serif] [GentiumBasic] >> \definefontsynonym[SerifItalic] [GentiumBasicItalic] >> \definefontsynonym[SerifBold] [GentiumBasicBold] >> \definefontsynonym[SerifBoldItalic][GentiumBasicBoldItalic] >> \stoptypescript >> >> ... >> >> \stoptext > > > Yes, thanks, works fine, but does it really use XeTeX? The wiki says: > "XeTeX offers some nice features in terms of automatically finding > related fonts in a family" which would be really convenient to use. I > really can't find docs on the difference between XeTeX and non-XeTeX > font handling in ConTeXt. Font tutorial is missing. Here you have some examples, but they are outdated: http://wiki.contextgarden.net/Fonts_in_XeTeX One feature that only works with XeTeX is this one (copied from wiki): \definetypeface[Serapion][rm][Xserif][Serapion Pro] \setupbodyfont[Serapion, 12pt] this could also be: % no idea about proper name of that font; try to run "fc-list Gentium" \definetypeface[gentium-basic][rm][Xserif][Gentium Basic] \setupbodyfont[gentium-basic, 12pt] This will automatically assign bold, italic & bold italic. This doesn't work with LuaTeX (not because it cannot work, but because it has not been implemented). The procedure that works with both LuaTeX & XeTeX & basically does (almost) the same: \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 The only difference is that Xsans uses the installed font (needs to be available to other applications as well; alternative is to call "name:" in all the definitions above), while "file:" will use the font file from somewhere in texmf tree (kpathsea needs to see it). Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________