From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42581 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ] Date: Fri, 18 Jul 2008 17:12:56 +0200 Message-ID: <115224fb0807180812gf2c8055pc48cfee1d1253555@mail.gmail.com> References: <326847810807161218q3d236702y9ca925195d30e03d@mail.gmail.com> <115224fb0807162343s6a473ecr4bded7d749470cdd@mail.gmail.com> <326847810807170800nd6a634cyb0a0b62d00305be2@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 1216394234 12153 80.91.229.12 (18 Jul 2008 15:17:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2008 15:17:14 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 18 17:18:03 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 1KJriU-0000DK-Dn for gctc-ntg-context-518@m.gmane.org; Fri, 18 Jul 2008 17:17:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E0E61FCE5; Fri, 18 Jul 2008 17:16:59 +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 29474-03-2; Fri, 18 Jul 2008 17:16:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75AB31FBC9; Fri, 18 Jul 2008 17:16:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48D3F1FBB9 for ; Fri, 18 Jul 2008 17:16:09 +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 29474-03 for ; Fri, 18 Jul 2008 17:15:35 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.149]) by ronja.ntg.nl (Postfix) with ESMTP id 9157F1FD04 for ; Fri, 18 Jul 2008 17:12:57 +0200 (CEST) Original-Received: by qw-out-1920.google.com with SMTP id 9so162853qwj.38 for ; Fri, 18 Jul 2008 08:12:56 -0700 (PDT) Original-Received: by 10.150.97.20 with SMTP id u20mr350461ybb.51.1216393976270; Fri, 18 Jul 2008 08:12:56 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Fri, 18 Jul 2008 08:12:56 -0700 (PDT) In-Reply-To: <326847810807170800nd6a634cyb0a0b62d00305be2@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:42581 Archived-At: On Thu, Jul 17, 2008 at 5:00 PM, Alan Stone wrote: > Thanks Wolfgang. > >> calm down. > > Done. > > I've let some steam off earlier on. OoOo<:O) > >>\setuphead[chapter][style=\ >> >> >myHeadingsFont\myChapterFont] >> > >> >You have to load 'myHeadingsfont' typescript before you can use >> >them because they are not available on outer level, only fonts used >> >as bodyfont can be accesed without this selection. > > That works indeed. > >>I found the information to solve your problem in the fonts manual and >>you should read it if you need more information. > > Oh, the number of times I read it. One more time a moment ago. > > Sooo... the Da Fonti Code is hidden in there. In which section of the manual > did you find the clue ? I found at page 9 and 9 what I needed. > In my quest to further understand how this stuff works, I've been testing > the following... > > \setuppapersize [A4][A4] > > \starttypescript [serif] [mySerifFont] > \definefontsynonym [mySerifFontRegular] [name:Times New Roman] > [features=default] > \definefontsynonym [mySerifFontItalic] [name:Times New Roman Italic] > [features=default] > \definefontsynonym [mySerifFontBold] [name:Times New Roman Bold] > [features=default] > \definefontsynonym [mySerifFontBoldItalic] [name:Times New Roman Bold > Italic] [features=default] > \stoptypescript > \starttypescript [serif] [mySerifFont] > \setups[font:fallback:serif] > \definefontsynonym [Serif] [mySerifFontRegular] > \definefontsynonym [SerifItalic] [mySerifFontItalic] > \definefontsynonym [SerifBold] [mySerifFontBold] > \definefontsynonym [SerifBoldItalic] [mySerifFontBoldItalic] > \stoptypescript > %\starttypescript [mySerifFont] > % \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default] > %\stoptypescript > > \starttypescript [sans] [mySansFont] > \definefontsynonym [mySansFontRegular] [name:Arial] [features=default] > \definefontsynonym [mySansFontItalic] [name:Arial Italic] > [features=default] > \definefontsynonym [mySansFontBold] [name:Arial Bold] [features=default] > \definefontsynonym [mySansFontBoldItalic] [name:Arial Bold Italic] > [features=default] > \stoptypescript > \starttypescript [sans] [mySansFont] > \setups[font:fallback:sans] > \definefontsynonym [Sans] [mySansFontRegular] > \definefontsynonym [SansItalic] [mySansFontItalic] > \definefontsynonym [SansBold] [mySansFontBold] > \definefontsynonym [SansBoldItalic] [mySansFontBoldItalic] > \stoptypescript > %\starttypescript [mySansFont] > % \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default] > %\stoptypescript > > \starttypescript[myFonts] > \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default] > \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default] > \stoptypescript \starttypescript[myFonts] \definetypeface [myFonts] [rm] [serif] [mySerifFont] [default] \definetypeface [myFonts] [ss] [sans] [mySansFont] [default] \stoptypescript You need the same name for both typefaces. > \usetypescript[myFonts] > > \setupbodyfont[mySerifFont,12pt] % this displays the correct font > %\setupbodyfont[mySansFont,12pt] % this displays the correct font \setupbodyfont[myFonts] > \definefont[myChapterFont][mySansFont sa 1.728] % compile error at line > 57 with (2) [and (1)] > %\definefont[myChapterFont][Arial sa 1.728] % this works with > (1), compile error at line 57 with (2) > %\definefont[myChapterFont][Sans sa 1.728] % defaults to LM > font with (1), compile error at line 57 with (2) > > %\setuphead[chapter][style=\myChapterFont] % (1) > %\setuphead[chapter][style=\myFonts\myChapterFont] % (2) > %\setuphead[chapter][style=\tfc\mySansFont] % (3) this > works > > \starttext > > \chapter{chapter test} % line 57 > > \section{section test} > > text test > > \stoptext > > > Looking for further clues. > > Alan > > P.S. Resistance is futile Fontzi...I will assimilate you! I will add to my todo list "Write a few lines about font installation for XeTeX and LuaTeX and how to use them in style keys". Regards, 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 ___________________________________________________________________________________