From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42642 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: Mon, 21 Jul 2008 08:29:36 +0200 Message-ID: <115224fb0807202329l16614ecat2e2281f7d216bb4a@mail.gmail.com> References: <326847810807200413kf95eb9co182532f22df3f1d1@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 1216621875 25856 80.91.229.12 (21 Jul 2008 06:31:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 06:31:15 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 21 08:32: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 1KKowD-0008L9-Cx for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jul 2008 08:32:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D47F61FD02; Mon, 21 Jul 2008 08:31:03 +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 24572-01-6; Mon, 21 Jul 2008 08:30:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA1E21FC67; Mon, 21 Jul 2008 08:30:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 760641FC67 for ; Mon, 21 Jul 2008 08:30:14 +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 23191-01-11 for ; Mon, 21 Jul 2008 08:29:37 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by ronja.ntg.nl (Postfix) with ESMTP id 5B6241FC5D for ; Mon, 21 Jul 2008 08:29:37 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id c8so336526ana.14 for ; Sun, 20 Jul 2008 23:29:36 -0700 (PDT) Original-Received: by 10.100.13.5 with SMTP id 5mr1590606anm.86.1216621776412; Sun, 20 Jul 2008 23:29:36 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Sun, 20 Jul 2008 23:29:36 -0700 (PDT) In-Reply-To: <326847810807200413kf95eb9co182532f22df3f1d1@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:42642 Archived-At: On Sun, Jul 20, 2008 at 1:13 PM, Alan Stone wrote: >> \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. > > Are you sure ? You're playing games with me, do you? > This works though... > > \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 [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[myFonts] > \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default] > \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default] > \stoptypescript > > \usetypescript[myFonts] > > \setupbodyfont[mySerifFont,12pt] > > \definefont[myChapterFont][mySansFontRegular sa 1.728] > > \setuphead[chapter][style=\mySansFont\myChapterFont] This works ow because you load the typeface in the chapter settings but in your last mail you used only the \myChapter Font without the default typeface from \setupbodyfont. > \starttext > > \chapter{chapter test} > > \section{section test} > > text test > > \stoptext 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 ___________________________________________________________________________________