From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42512 Path: news.gmane.org!not-for-mail From: "Alan Stone" Newsgroups: gmane.comp.tex.context Subject: Re: Whacko font behaviour ? ( Or Am I ? :O) Date: Wed, 16 Jul 2008 18:00:12 +0200 Message-ID: <326847810807160900pc11c7f1r9d32468577bca2d6@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="===============1618969206==" X-Trace: ger.gmane.org 1216224172 17214 80.91.229.12 (16 Jul 2008 16:02:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 16:02:52 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 16 18:03:35 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 1KJ9Sd-0000BX-5F for gctc-ntg-context-518@m.gmane.org; Wed, 16 Jul 2008 18:02:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAFEF1FD19; Wed, 16 Jul 2008 18:01:37 +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 15033-01-2; Wed, 16 Jul 2008 18:00:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE42D1FCAA; Wed, 16 Jul 2008 18:00:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E834D1FCA3 for ; Wed, 16 Jul 2008 18:00:47 +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 15033-01 for ; Wed, 16 Jul 2008 18:00:12 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by ronja.ntg.nl (Postfix) with ESMTP id ABE421FCB0 for ; Wed, 16 Jul 2008 18:00:12 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id c10so1554299nfd.44 for ; Wed, 16 Jul 2008 09:00:12 -0700 (PDT) Original-Received: by 10.210.45.17 with SMTP id s17mr181152ebs.9.1216224012294; Wed, 16 Jul 2008 09:00:12 -0700 (PDT) Original-Received: by 10.210.136.3 with HTTP; Wed, 16 Jul 2008 09:00:12 -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:42512 Archived-At: --===============1618969206== Content-Type: multipart/alternative; boundary="----=_Part_12334_31093517.1216224012284" ------=_Part_12334_31093517.1216224012284 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ( 2nd and last attempt: message didn't get through ) Thanks a lot Wolfgang. There's still something I don't understand though... Why does this not compile then ? -------- \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] \definefont[myChapterFont][myHeadingsFontRegular sa 1.728] %\setuphead[chapter][style=myChapterFont] % compile error at line 49 \setuphead[chapter][style=\myChapterFont] % compile error at line 49 \starttext \chapter{chapter test} % line 49 \section{section test} text test \stoptext ------- ConTeXt ver: 2008.07.10 08:40 MKIV fmt: 2008.7.10 int: english/english language : language en is active system : cont-new loaded (/opt/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv lua : used config path - /opt/context/tex/texmf/web2c/texmf.cnf lua : used cache path - /opt/context/tex/texmf-cache/luatex-cache/context/9d2177de8a31df158f21be632b7742b7 ) (/opt/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/opt/context/tex/texmf-context/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/opt/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/opt/context/tex/texmf-context/tex/context/user/cont-sys.tex (/opt/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/opt/context/tex/texmf-context/tex/context/base/type-siz.tex) (/opt/context/tex/texmf-context/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded load otf | loading: /opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf load otf | enhance: before load otf | enhance: enrich load otf | enhance: registering tlig feature load otf | enhance: registering trep feature load otf | enhance: flatten load otf | flattening 'specifications' tables load otf | flattening 'anchor' tables load otf | flattening 'gpos' tables load otf | flattening 'gsub' tables load otf | enhance: analyze load otf | enhance: after load otf | replacing 'kerns' tables by 'mykerns' tables load otf | enhance: patch load otf | enhance: strip load otf | enhance: pack load otf | file size: 107060 load otf | saving: in cache(test.tex ( snip: file too big ) load otf | loading: /opt/context/tex/texmf/fonts/truetype/msttcorefonts/timesbi.ttf load otf | warning: Warning: Glyph 257 is named middot which should mean it is mapped to Unicode U+00B7, but Glyph 194 already has that encoding. load otf | warning: Glyph 915 is called ".notdef", a singularly inept choice of name (only glyph 0 may be called .notdef) FontForge will rename it. load otf | enhance: before load otf | enhance: enrich load otf | enhance: registering tlig feature load otf | enhance: registering trep feature load otf | enhance: flatten load otf | flattening 'specifications' tables load otf | flattening 'anchor' tables load otf | flattening 'gpos' tables load otf | flattening 'gsub' tables load otf | enhance: analyze load otf | enhance: after load otf | replacing 'kerns' tables by 'mykerns' tables load otf | enhance: patch load otf | enhance: strip load otf | enhance: pack load otf | file size: 239692 load otf | saving: in cache (test.tuo) (test.tuo) systems : begin file test at line 47 define font | font with name myHeadingsFontRegular is not found define font | unknown font myHeadingsFontRegular, loading aborted ! Font \**myChapterFont**:=myHeadingsFontRegular 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.49 \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.49 \chapter{chapter test} End of file on the terminal! ! ==> Fatal error occurred, no output PDF file produced! ------- Alan ------=_Part_12334_31093517.1216224012284 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
( 2nd and last attempt: message didn't get through )

Thanks a lot Wolfgang. There's still something I don't understand though...

Why does this not compile then ?

--------

\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]

\definefont[myChapterFont][myHeadingsFontRegular sa 1.728]

%\setuphead[chapter][style=myChapterFont]      % compile error at line 49
\setuphead[chapter][style=\myChapterFont]  % compile error at line 49

\starttext

\chapter{chapter test}    % line 49

\section{section test}

text test

\stoptext

-------

ConTeXt  ver: 2008.07.10 08:40 MKIV  fmt: 2008.7.10  int: english/english

language       : language en is active
system         : cont-new loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
lua            : used config path - /opt/context/tex/texmf/web2c/texmf.cnf
lua            : used cache path - /opt/context/tex/texmf-cache/luatex-cache/context/9d2177de8a31df158f21be632b7742b7
) (/opt/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
system         : cont-old loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys loaded
(/opt/context/tex/texmf-context/tex/context/user/cont-sys.tex (/opt/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/opt/context/tex/texmf-context/tex/context/base/type-siz.tex) (/opt/context/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont       : 12pt rm is loaded
load otf | loading: /opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf
load otf | enhance: before
load otf | enhance: enrich
load otf | enhance: registering tlig feature
load otf | enhance: registering trep feature
load otf | enhance: flatten
load otf | flattening 'specifications' tables
load otf | flattening 'anchor' tables
load otf | flattening 'gpos' tables
load otf | flattening 'gsub' tables
load otf | enhance: analyze
load otf | enhance: after
load otf | replacing 'kerns' tables by 'mykerns' tables
load otf | enhance: patch
load otf | enhance: strip
load otf | enhance: pack
load otf | file size: 107060
load otf | saving: in cache(test.tex

( snip: file too big )

load otf | loading: /opt/context/tex/texmf/fonts/truetype/msttcorefonts/timesbi.ttf
load otf | warning: Warning: Glyph 257 is named middot which should mean it is mapped to
 Unicode U+00B7, but Glyph 194 already has that encoding.
load otf | warning: Glyph 915 is called ".notdef", a singularly inept choice of name (only glyph 0
 may be called .notdef)
FontForge will rename it.
load otf | enhance: before
load otf | enhance: enrich
load otf | enhance: registering tlig feature
load otf | enhance: registering trep feature
load otf | enhance: flatten
load otf | flattening 'specifications' tables
load otf | flattening 'anchor' tables
load otf | flattening 'gpos' tables
load otf | flattening 'gsub' tables
load otf | enhance: analyze
load otf | enhance: after
load otf | replacing 'kerns' tables by 'mykerns' tables
load otf | enhance: patch
load otf | enhance: strip
load otf | enhance: pack
load otf | file size: 239692
load otf | saving: in cache (test.tuo) (test.tuo)
systems        : begin file test at line 47
define font | font with name myHeadingsFontRegular is not found
define font | unknown font myHeadingsFontRegular, loading aborted
! Font \**myChapterFont**:=myHeadingsFontRegular 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.49 \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.49 \chapter{chapter test}
                          
End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!

-------

Alan
------=_Part_12334_31093517.1216224012284-- --===============1618969206== 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 ___________________________________________________________________________________ --===============1618969206==--