From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42526 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: Thu, 17 Jul 2008 08:43:07 +0200 Message-ID: <115224fb0807162343s6a473ecr4bded7d749470cdd@mail.gmail.com> References: <326847810807161218q3d236702y9ca925195d30e03d@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 1216277087 5523 80.91.229.12 (17 Jul 2008 06:44:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 06:44:47 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 17 08:45:34 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 1KJNF7-0003DE-I2 for gctc-ntg-context-518@m.gmane.org; Thu, 17 Jul 2008 08:45:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 451DB1FC91; Thu, 17 Jul 2008 08:44:38 +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 04226-01-5; Thu, 17 Jul 2008 08:43:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E487A1FC06; Thu, 17 Jul 2008 08:43:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8471C1FB57 for ; Thu, 17 Jul 2008 08:43:46 +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 01816-05-5 for ; Thu, 17 Jul 2008 08:43:09 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.240]) by ronja.ntg.nl (Postfix) with ESMTP id 0C8461FC06 for ; Thu, 17 Jul 2008 08:43:08 +0200 (CEST) Original-Received: by rv-out-0708.google.com with SMTP id f25so5834298rvb.14 for ; Wed, 16 Jul 2008 23:43:07 -0700 (PDT) Original-Received: by 10.141.63.9 with SMTP id q9mr981084rvk.47.1216276987742; Wed, 16 Jul 2008 23:43:07 -0700 (PDT) Original-Received: by 10.140.125.15 with HTTP; Wed, 16 Jul 2008 23:43:07 -0700 (PDT) In-Reply-To: <326847810807161218q3d236702y9ca925195d30e03d@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:42526 Archived-At: Hi Alan, calm down. On Wed, Jul 16, 2008 at 9:18 PM, Alan Stone wrote: >> (1) \definefont[myChapterFont][myHeadingsFont sa 1.728] >>You could either use a real font name like 'Arial' or a symbolic name >>defined with \definefontsynonym like 'Serif', 'SerifBold', 'Sans', >>'Dummy-Regular' etc. in the second argument of \definefont but not >>the name for a font collection defined with \definetype, in your case >>\definefont[myChapterFont][Sans sa 1.728] >>or >>\definefont[myChapterFont][DummyRegular sa 1.728] > > So ( and considering the example at > http://wiki.contextgarden.net/Chapters_headers ) > I tried... > > \setuppapersize [A4][A4] > > \starttypescript [serif] [myBodyFont] > \definefontsynonym [myBodyFontRegular] [name:Times New Roman] > [features=default] > \definefontsynonym [myBodyFontItalic] [name:Times New Roman Italic] > [features=default] > \definefontsynonym [myBodyFontBold] [name:Times New Roman Bold] > [features=default] > \definefontsynonym [myBodyFontBoldItalic] [name:Times New Roman Bold > Italic] [features=default] > \stoptypescript > \starttypescript [serif] [myBodyFont] > \setups[font:fallback:serif] > \definefontsynonym [Serif] [myBodyFontRegular] > \definefontsynonym [SerifItalic] [myBodyFontItalic] > \definefontsynonym [SerifBold] [myBodyFontBold] > \definefontsynonym [SerifBoldItalic] [myBodyFontBoldItalic] > \stoptypescript > \starttypescript [myBodyFont] > \definetypeface [myBodyFont] [rm] [serif] [myBodyFont] [default] > \stoptypescript > > \starttypescript [sans] [myHeadingsFont] > \definefontsynonym [myHeadingsFontRegular] [name:Arial] > [features=default] > \definefontsynonym [myHeadingsFontItalic] [name:Arial Italic] > [features=default] > \definefontsynonym [myHeadingsFontBold] [name:Arial Bold] > [features=default] > \definefontsynonym [myHeadingsFontBoldItalic] [name:Arial Bold Italic] > [features=default] > \stoptypescript > \starttypescript [sans] [myHeadingsFont] > \setups[font:fallback:sans] > \definefontsynonym [Sans] [myHeadingsFontRegular] > \definefontsynonym [SansItalic] [myHeadingsFontItalic] > \definefontsynonym [SansBold] [myHeadingsFontBold] > \definefontsynonym [SansBoldItalic] [myHeadingsFontBoldItalic] > \stoptypescript > \starttypescript [myHeadingsFont] > \definetypeface [myHeadingsFont] [ss] [sans] [myHeadingsFont] [default] > \stoptypescript > > \usetypescript[myBodyFont] > \usetypescript[myHeadingsFont] > > \setupbodyfont[myBodyFont,12pt] % this works: body font displays in the > correct font > > %\definefont[myChapterFont][myHeadingsFontRegular sa 1.728] % compile > error at line 51: WHY ? > \definefont[myChapterFont][Arial sa > 1.728] % only this works: WHY ? > %\definefont[myChapterFont][Sans sa 1.728] > % defaults to default LM font for line 51: WHY ? > > %\setuphead[chapter][style=myChapterFont] > \setuphead[chapter][style=\myChapterFont] \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. > \starttext > > \chapter{chapter test} % line 51 > > \section{section test} > > text test > > \stoptext > > Many thanks in advance for your enlightening help. I found the information to solve your problem in the fonts manual and you should read it if you need more information. http://pragma-ade.com/general/manuals/mfonts.pdf 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 ___________________________________________________________________________________