ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Idris Samawi Hamid <ishamid@lamar.colostate.edu>
Subject: inheriting size characteristics
Date: Tue, 19 Apr 2005 10:04:28 -0600	[thread overview]
Message-ID: <4272C946@webmail.colostate.edu> (raw)

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

             reply	other threads:[~2005-04-19 16:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 16:04 Idris Samawi Hamid [this message]
2005-04-21 16:53 ` Adam Lindsay
2005-04-22  8:19   ` Hans Hagen
2005-04-19 16:08 Idris Samawi Hamid

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=4272C946@webmail.colostate.edu \
    --to=ishamid@lamar.colostate.edu \
    --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).