From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42545 Path: news.gmane.org!not-for-mail From: "Alan Stone" 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 17:00:53 +0200 Message-ID: <326847810807170800nd6a634cyb0a0b62d00305be2@mail.gmail.com> References: <326847810807161218q3d236702y9ca925195d30e03d@mail.gmail.com> <115224fb0807162343s6a473ecr4bded7d749470cdd@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0971769841==" X-Trace: ger.gmane.org 1216306964 9783 80.91.229.12 (17 Jul 2008 15:02:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 15:02:44 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 17 17:03:33 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 1KJV0v-0007Ci-Kk for gctc-ntg-context-518@m.gmane.org; Thu, 17 Jul 2008 17:03:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57FDC1FD54; Thu, 17 Jul 2008 17:02:30 +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 14804-01-2; Thu, 17 Jul 2008 17:01:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2FDD51FD06; Thu, 17 Jul 2008 17:01:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E50141FD1B for ; Thu, 17 Jul 2008 17:01:31 +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 13230-02-12 for ; Thu, 17 Jul 2008 17:00:54 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by ronja.ntg.nl (Postfix) with ESMTP id E8A381FD02 for ; Thu, 17 Jul 2008 17:00:53 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id u40so795984ugc.50 for ; Thu, 17 Jul 2008 08:00:53 -0700 (PDT) Original-Received: by 10.210.37.11 with SMTP id k11mr1229633ebk.70.1216306853150; Thu, 17 Jul 2008 08:00:53 -0700 (PDT) Original-Received: by 10.210.136.3 with HTTP; Thu, 17 Jul 2008 08:00:53 -0700 (PDT) In-Reply-To: <115224fb0807162343s6a473ecr4bded7d749470cdd@mail.gmail.com> 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:42545 Archived-At: --===============0971769841== Content-Type: multipart/alternative; boundary="----=_Part_19698_18986079.1216306853151" ------=_Part_19698_18986079.1216306853151 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ? 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 \usetypescript[myFonts] \setupbodyfont[mySerifFont,12pt] % this displays the correct font %\setupbodyfont[mySansFont,12pt] % this displays the correct font \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! ------=_Part_19698_18986079.1216306853151 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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 ?


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

\usetypescript[myFonts]

\setupbodyfont[mySerifFont,12pt]            % this displays the correct font
%\setupbodyfont[mySansFont,12pt]        % this displays the correct font

\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!
------=_Part_19698_18986079.1216306853151-- --===============0971769841== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0971769841==--