From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42434 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: Whacko font behaviour ? ( Or Am I ? :O) Date: Mon, 14 Jul 2008 21:22:37 +0200 Message-ID: <326847810807141222h63f39b8dp6d1a41bf5c1dbe68@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="----=_Part_34044_10402363.1216063357335" X-Trace: ger.gmane.org 1216063459 30011 80.91.229.12 (14 Jul 2008 19:24:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 19:24:19 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 14 21:25:07 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 1KITfT-0005RY-44 for gctc-ntg-context-518@m.gmane.org; Mon, 14 Jul 2008 21:25:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E1C871FCAF; Mon, 14 Jul 2008 21:24:06 +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 22707-01; Mon, 14 Jul 2008 21:23:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8BD621FC83; Mon, 14 Jul 2008 21:23:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1ECB51FC74 for ; Mon, 14 Jul 2008 21:23: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 21982-02 for ; Mon, 14 Jul 2008 21:22:38 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by ronja.ntg.nl (Postfix) with ESMTP id B7F121FC83 for ; Mon, 14 Jul 2008 21:22:37 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id u40so356043ugc.50 for ; Mon, 14 Jul 2008 12:22:37 -0700 (PDT) Original-Received: by 10.210.72.14 with SMTP id u14mr9196025eba.113.1216063357325; Mon, 14 Jul 2008 12:22:37 -0700 (PDT) Original-Received: by 10.210.136.3 with HTTP; Mon, 14 Jul 2008 12:22:37 -0700 (PDT) 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:42434 Archived-At: ------=_Part_34044_10402363.1216063357335 Content-Type: multipart/alternative; boundary="----=_Part_34045_6257932.1216063357335" ------=_Part_34045_6257932.1216063357335 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ConTeXt ver: 2008.07.10 08:40 MKIV fmt: 2008.7.10 int: english/english See test.tex in attachement. The following combinations give the following results after compiling with texmfstart texexec --lua test.tex ------------------------------------------------------------------------------- (1) \definefont[myChapterFont][myHeadingsFont sa 1.728] % with \setuphead[chapter][style=myChapterFont] % or \setuphead[chapter][style=\myChapterFont] % or \setuphead[chapter][style={\myChapterFont}] generates the following compile error... ! Font \**myChapterFont**:=myHeadingsFont at 20.736pt not loadable: metric data not found or bad. \relax \dododefinefont ...ontspec {#2}\rawfontidentifier \let \localrelativefontsiz... \dosetfontattribute ...me #1#2\@EA \endcsname \fi \empty \doplaceheadnumbertext ...bute {\??ko #1}\c!style \getvalue {\??ko #1\c!comm... \dodododoconstructhead ...{\finalsectionnumber }}} \writesection {#1}{#3}{#4}... l.54 \chapter{chapter test} ? ! Emergency stop. \relax \dododefinefont ...ontspec {#2}\rawfontidentifier \let \localrelativefontsiz... \dosetfontattribute ...me #1#2\@EA \endcsname \fi \empty \doplaceheadnumbertext ...bute {\??ko #1}\c!style \getvalue {\??ko #1\c!comm... \dodododoconstructhead ...{\finalsectionnumber }}} \writesection {#1}{#3}{#4}... l.54 \chapter{chapter test} ! ==> Fatal error occurred, no output PDF file produced! ------------------------------------------------------------------------------- (2) \definefont[myChapterFont][Sans sa 1.728] % with \setuphead[chapter][style=myChapterFont] % or \setuphead[chapter][style=\myChapterFont] % or \setuphead[chapter][style={\myChapterFont}] displays the chapter heading with a scaled LMSans10-Regular font ------------------------------------------------------------------------------- (3) this displays the chapter heading font correctly \setuphead[chapter][style={\tfc\myHeadingsFont}] ------------------------------------------------------------------------------- (4) \setuphead[chapter][style={\tfc\Sans}] generates the following compile error... ! Undefined control sequence. \@@kochapterstyle ->\tfc \Sans \doifdefinedelse #1->\edef \p!defined {#1 }\ifcsname \detokenize \@EA {\p!def... \doconvertfont #1->\doifdefinedelse {\@letter@ #1} {\doifelsenothing {#1}\go... \dosetfontattribute ...me #1#2\@EA \endcsname \fi \empty \doplaceheadnumbertext ...bute {\??ko #1}\c!style \getvalue {\??ko #1\c!comm... \dodododoconstructhead ...{\finalsectionnumber }}} \writesection {#1}{#3}{#4}... l.54 \chapter{chapter test} ? ! Emergency stop. \@@kochapterstyle ->\tfc \Sans \doifdefinedelse #1->\edef \p!defined {#1 }\ifcsname \detokenize \@EA {\p!def... \doconvertfont #1->\doifdefinedelse {\@letter@ #1} {\doifelsenothing {#1}\go... \dosetfontattribute ...me #1#2\@EA \endcsname \fi \empty \doplaceheadnumbertext ...bute {\??ko #1}\c!style \getvalue {\??ko #1\c!comm... \dodododoconstructhead ...{\finalsectionnumber }}} \writesection {#1}{#3}{#4}... l.54 \chapter{chapter test} ! ==> Fatal error occurred, no output PDF file produced! ------------------------------------------------------------------------------- How come ? Alan ------=_Part_34045_6257932.1216063357335 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ConTeXt  ver: 2008.07.10 08:40 MKIV  fmt: 2008.7.10  int: english/english

See test.tex in attachement.

The following combinations give the following results after compiling with

   texmfstart texexec --lua test.tex

-------------------------------------------------------------------------------

(1) \definefont[myChapterFont][myHeadingsFont sa 1.728]  % with

\setuphead[chapter][style=myChapterFont] % or
\setuphead[chapter][style=\myChapterFont] % or
\setuphead[chapter][style={\myChapterFont}]

generates the following compile error...

! Font \**myChapterFont**:=myHeadingsFont at 20.736pt not loadable: metric data not found or bad.
<to be read again>
                   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
                                                  \let \localrelativefontsiz...
\dosetfontattribute ...me #1#2\@EA \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko #1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection {#1}{#3}{#4}...
l.54 \chapter{chapter test}
                          
?
! Emergency stop.
<to be read again>
                   \relax
\dododefinefont ...ontspec {#2}\rawfontidentifier
                                                  \let \localrelativefontsiz...
\dosetfontattribute ...me #1#2\@EA \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko #1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection {#1}{#3}{#4}...
l.54 \chapter{chapter test}
                          
!  ==> Fatal error occurred, no output PDF file produced!

-------------------------------------------------------------------------------

(2) \definefont[myChapterFont][Sans sa 1.728]  % with

\setuphead[chapter][style=myChapterFont] % or
\setuphead[chapter][style=\myChapterFont] % or
\setuphead[chapter][style={\myChapterFont}]

displays the chapter heading with a scaled LMSans10-Regular font

-------------------------------------------------------------------------------

(3) this displays the chapter heading font correctly

\setuphead[chapter][style={\tfc\myHeadingsFont}]

-------------------------------------------------------------------------------

(4) \setuphead[chapter][style={\tfc\Sans}]

generates the following compile error...

! Undefined control sequence.
\@@kochapterstyle ->\tfc \Sans
                              
\doifdefinedelse #1->\edef \p!defined {#1
                                         }\ifcsname \detokenize \@EA {\p!def...
\doconvertfont #1->\doifdefinedelse {\@letter@ #1}
                                                   {\doifelsenothing {#1}\go...
\dosetfontattribute ...me #1#2\@EA \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko #1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection {#1}{#3}{#4}...
l.54 \chapter{chapter test}
                          
?
! Emergency stop.
\@@kochapterstyle ->\tfc \Sans
                              
\doifdefinedelse #1->\edef \p!defined {#1
                                         }\ifcsname \detokenize \@EA {\p!def...
\doconvertfont #1->\doifdefinedelse {\@letter@ #1}
                                                   {\doifelsenothing {#1}\go...
\dosetfontattribute ...me #1#2\@EA \endcsname \fi
                                                  \empty
\doplaceheadnumbertext ...bute {\??ko #1}\c!style
                                                  \getvalue {\??ko #1\c!comm...
\dodododoconstructhead ...{\finalsectionnumber }}}
                                                  \writesection {#1}{#3}{#4}...
l.54 \chapter{chapter test}
                          
!  ==> Fatal error occurred, no output PDF file produced!

-------------------------------------------------------------------------------


How come ?

Alan
------=_Part_34045_6257932.1216063357335-- ------=_Part_34044_10402363.1216063357335 Content-Type: application/x-tex; name=test.tex Content-Transfer-Encoding: base64 X-Attachment-Id: f_finghb170 Content-Disposition: attachment; filename=test.tex XHNldHVwcGFwZXJzaXplIFtBNF1bQTRdCgpcc3RhcnR0eXBlc2NyaXB0IFtzZXJpZl0gW215Qm9k eUZvbnRdCiAgICBcZGVmaW5lZm9udHN5bm9ueW0gW0R1bW15LVJlZ3VsYXJdIFtuYW1lOlRpbWVz IE5ldyBSb21hbl0gW2ZlYXR1cmVzPWRlZmF1b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0gICUg Y29tcGlsZSBlcnJvciBhdCBsaW5lIDU0CiVcZGVmaW5lZm9udFtteUNoYXB0ZXJGb250XVtTYW5z IHNhIDEuNzI4XSAgICAgICAgICAgICAgICAgICAlIGRpc3BsYXlzIExNU2FuczEwLVJlZ3VsYXIg Zm9udCBmb3IgbGluZSA1NAoKXHNldHVwaGVhZFtjaGFwdGVyXVtzdHlsZT1teUNoYXB0ZXJGb250 XQolXHNldHVwaGVhZFtjaGFwdGVyXVtzdHlsZT1cbXlDaGFwdGVyRm9udF0KJVxzZXR1cGhlYWRb Y2hhcHRlcl1bc3R5bGU9e1xteUNoYXB0ZXJGb250fV0KCiVcc2V0dXBoZWFkW2NoYXB0ZXJdW3N0 eWxlPXtcdGZjXG15SGVhZGluZ3NGb250fV0gICUgdGhpcyB3b3JrcwolXHNldHVwaGVhZFtjaGFw dGVyXVtzdHlsZT17XHRmY1xTYW5zfV0gICAgICAgICAgICAgICAgICAgICAgICAlIGNvbXBpbGUg ZXJyb3IgYXQgbGluZSA1NAoKXHN0YXJ0dGV4dAoKXGNoYXB0ZXJ7Y2hhcHRlciB0ZXN0fQoKXHNl Y3Rpb257c2VjdGlvbiB0ZXN0fQoKdGV4dCB0ZXN0Cgpcc3RvcHRleHQK ------=_Part_34044_10402363.1216063357335 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 ___________________________________________________________________________________ ------=_Part_34044_10402363.1216063357335--