[NTG-context] inheriting size characteristics

Idris Samawi Hamid ishamid at lamar.colostate.edu
Tue Apr 19 18:04:28 CEST 2005


Dear fellow knights,

Given predefined switches like \tf and \bf, one inherits the size 
characteristics of the one already declared. But for user-defined switches 
this does not work. The following minimal files (typescript and test) is a bit 
long, but it accurately illustrates the problem and uses the default fonts. My 
user-defined switch works, but does not inherit from, e.g., \tfc. But \bf does 
inherit.

What am I missing?

Thnx in advance
Idris

======================type-lmtest===================
\definestyle[smallcapssemibold,semiboldsmallcaps][\scsb][]

\starttypescript[serif]                 [lm][default]
  \definefontsynonym [LM]               [texnansi-lmr12]
  \definefontsynonym [LMBold]           [texnansi-lmr12]
  \definefontsynonym [LMSemiboldCaps]   [texnansi-lmr12]
\stoptypescript

\starttypescript[serif]                 [lm] [name]
  \definefontsynonym [Serif]            [LM]
  \definefontsynonym [SerifBold]        [LMBold]
  \definefontsynonym [SerifSemiboldCaps][LMSemiboldCaps]
\stoptypescript

\starttypescript[serif] [lm] [size]
  \definebodyfont [20.7pt,24.9pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt]
  [rm]
  [tf=Serif             sa 1,
   bf=SerifBold         sa 1,
   scsb=SerifSemiboldCaps         sa 1,
   scsba=SerifSemiboldCaps        sa a,
   scsbb=SerifSemiboldCaps        sa b,
   scsbc=SerifSemiboldCaps        sa c,
   scsbd=SerifSemiboldCaps        sa d]
\stoptypescript

\starttypescript[LMtest]
  \definebodyfontenvironment
  [lmtest]
  [default]
  [interlinespace=2.8ex]

  \definetypeface [lmtest]
  [rm] [serif] [lm] [lm] [encoding]
\stoptypescript
====================================================

====================test-lm.tex=====================
% output=pdf interface=en

  \usetypescriptfile[type-lmtest]
  \usetypescript[LMtest]
  \setupbodyfont[lmtest]

\starttext

\tfc    This is a test of Minion~Pro Opticals. 123467689

\bf     This is a test of Minion~Pro Opticals. 123467689

\scsb   This is a test of Minion~Pro Opticals. 123467689

\stoptext
====================================================

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523



More information about the ntg-context mailing list