ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Alan Stone" <software.list.1es9s@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Whacko font behaviour ? ( Or Am I ? :O)
Date: Wed, 16 Jul 2008 18:00:12 +0200	[thread overview]
Message-ID: <326847810807160900pc11c7f1r9d32468577bca2d6@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 6692 bytes --]

( 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

[-- Attachment #1.2: Type: text/html, Size: 10698 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2008-07-16 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16 16:00 Alan Stone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-16  9:36 Alan Stone
2008-07-14 19:22 Alan Stone
2008-07-14 20:30 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=326847810807160900pc11c7f1r9d32468577bca2d6@mail.gmail.com \
    --to=software.list.1es9s@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).