ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
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	[thread overview]
Message-ID: <115224fb0807202329l16614ecat2e2281f7d216bb4a@mail.gmail.com> (raw)
In-Reply-To: <326847810807200413kf95eb9co182532f22df3f1d1@mail.gmail.com>

On Sun, Jul 20, 2008 at 1:13 PM, Alan Stone
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________


  reply	other threads:[~2008-07-21  6:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-20 11:13 Alan Stone
2008-07-21  6:29 ` Wolfgang Schuster [this message]
2008-07-21  7:26   ` Alan Stone
  -- strict thread matches above, loose matches on Subject: below --
2008-07-16 19:18 Alan Stone
2008-07-16 23:14 ` Diego Depaoli
2008-07-16 23:23   ` Diego Depaoli
2008-07-17  6:30   ` Wolfgang Schuster
2008-07-17 15:39     ` Diego Depaoli
2008-07-18 15:16       ` Wolfgang Schuster
2008-07-18 21:22         ` Diego Depaoli
2008-07-19  4:49           ` Charles P. Schaum
2008-07-19 10:03             ` Alan Stone
2008-07-19 13:25               ` John Culleton
2008-07-21  6:38                 ` Wolfgang Schuster
2008-07-17  6:43 ` Wolfgang Schuster
2008-07-17 15:00   ` Alan Stone
2008-07-18 15:12     ` Wolfgang Schuster
2008-07-18 15:56       ` Olivier Guéry
2008-07-18 20:45       ` Alan Stone
2008-07-18 21:44         ` Andrea Valle
2008-07-17 11:32 ` 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=115224fb0807202329l16614ecat2e2281f7d216bb4a@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).