ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: font-switching oddities
Date: Tue, 25 Oct 2005 22:54:56 +0200	[thread overview]
Message-ID: <04B392DF-0906-409B-BE18-E274F324AB64@uni-bonn.de> (raw)
In-Reply-To: <B00DF2BD-0AA8-4FD5-A75F-EBCECD56B9F5@uni-bonn.de>

OK, I solved my immediate problem by adding this in my typescript:

\definebodyfont
[30pt,25pt,20pt,18pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt, 
4pt]
[rm]
[default]

but is there any simpler means of doing this, is there a keyword like  
"all" to define bodyfonts for every imaginable size?

Thanks

Thomas

On Oct 25, 2005, at 3:50 PM, Thomas A. Schmitz wrote:

> Hi all,
>
> I'm having some trouble with bodyfont switching. It involves two  
> fonts that I adapted myself, so it's difficult to make a minimal  
> example. Both fonts are defined in typescripts (these are just  
> examples, it works the same for every typescript I tried).
>
> First one is Adobe Caslon:
>
> \usetypescriptfile[type-buy]
>
> \starttypescript [serif] [caslon] [texnansi]
>   \definefontsynonym [Caslon-Roman]          [texnansi-KERN-LIGA- 
> DLIG-ONUM-ACaslonPro-Regularnoct]  [encoding=texnansi]
>   \definefontsynonym [Caslon-Bold]           [texnansi-KERN-LIGA- 
> DLIG-ONUM-ACaslonPro-Boldnoct]  [encoding=texnansi]
>   \definefontsynonym [Caslon-Italic]         [texnansi-KERN-LIGA- 
> DLIG-ONUM-ACaslonPro-Italicnoct]  [encoding=texnansi]
>   \definefontsynonym [Caslon-Bold-Italic]    [texnansi-KERN-LIGA- 
> DLIG-ONUM-ACaslonPro-BoldItalicnoct] [encoding=texnansi]
>   \definefontsynonym [Caslon-Roman-SmallCaps][texnansi-KERN-SMCP- 
> LNUM-ACaslonPro-Regular]  [encoding=texnansi]
>   \definefontsynonym [Caslon-Roman-OSF]      [texnansi-KERN-SMCP- 
> LNUM-ACaslonPro-Regular]   [encoding=texnansi]
> \stoptypescript
>
> \starttypescript [serif] [caslon] [name]
>   \usetypescript[serif][fallback]
>   \definefontsynonym [Serif]           [Caslon-Roman]
>   \definefontsynonym [SerifItalic]     [Caslon-Italic]
>   \definefontsynonym [SerifBold]       [Caslon-Bold]
>   \definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic]
>   \definefontsynonym [SerifCaps]       [Caslon-Roman-SmallCaps]
>   \definefontsynonym [OldStyle]        [Caslon-Roman-OSF]
> \stoptypescript
>
> \starttypescript [Caslon]
>   \definetypeface [MyCaslon] [rm] [serif] [caslon] [default]  
> [encoding=texnansi]
> \stoptypescript
>
> Second one is one of my Greek fonts (doesn't matter which one):
>
>
> \starttypescript [serif] [greekgentium] [agr]
>   \definefontsynonym [Greekgentium-Roman] [genagr-GentiumAlt]   
> [encoding=agr]
>   \definefontsynonym [Greekgentium-Italic][genagr-GentiumAItI]  
> [encoding=agr]
> \stoptypescript
>
> \starttypescript [serif] [greekgentium] [name]
>   \usetypescript[serif][fallback]
>   \definefontsynonym [Serif]           [Greekgentium-Roman]
>   \definefontsynonym [SerifItalic]     [Greekgentium-Italic]
>   \definefontsynonym [SerifBold]       [Serif]
>   \definefontsynonym [SerifBoldItalic] [Serif]
> \stoptypescript
> \starttypescript[GreekGentium]
>     \definetypeface [MyGreekGentium] [rm] [serif] [greekgentium]  
> [default] [rscale=\getvariable{Greek}{scale},encoding=agr]
> \stoptypescript
>
>
> The fonts are used thus:
>
> \setupbodyfont[MyCaslon,12pt]
>
> \switchtobodyfont[MyGreekGentium]
>
> Switching works when I set the bodyfont size to 9,10,11,12pt, but  
> not if it is set to any other value. In that case, I get these  
> messages in the log file
>
> Missing character: There is no a in font nullfont!
> Missing character: There is no > in font nullfont!
> Missing character: There is no u in font nullfont!
> Missing character: There is no t in font nullfont!
> Missing character: There is no o in font nullfont!
> etc.
>
> I must be missing something obvious about typefiles, but can't see  
> what? Any help will be appreciated.
>
> All best
>
> Thomas
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

  reply	other threads:[~2005-10-25 20:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25 13:50 Thomas A. Schmitz
2005-10-25 20:54 ` Thomas A. Schmitz [this message]
2005-10-26  6:23   ` Taco Hoekwater
2005-10-26  8:46     ` Thomas A. Schmitz
2005-11-09 10:53 ` Hans Hagen
2005-11-09 12:30   ` Thomas A. Schmitz
2005-11-09 13:13     ` Hans Hagen

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=04B392DF-0906-409B-BE18-E274F324AB64@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --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).