From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: notes on TeXLive and Truetype fonts
Date: Wed, 16 Apr 2003 00:49:23 +0100 [thread overview]
Message-ID: <20030415234923.20938@news.comp.lancs.ac.uk> (raw)
In-Reply-To: <20030410001009.00131b24.morawski@gmx.net>
Jens-Uwe Morawski said this at Thu, 10 Apr 2003 00:10:09 +0200:
>
>The problem is, for example, how can one declare a bold-italic small-caps
>font in ConTeXT. AFAIK i can define
>\definefontsynonym[SerifBoldItalicCaps][AFont-BoldItalicCaps]
>
>but there seems no standard way to access it (\bfitsc or {\bf{\it{\sc...}}})
>ConTeXt lacks a complete standard set of font attributes and how they
>have to be used. LaTeX has them defined, thus it is easier to create
>FDs than typescript. Even how to name typescript-files is nowhere defined.
Clearly you're asking for a standard way. I can't provide that--only Hans
can--but I can suggest a solution that I have been and still am working
on. I'm defining some new fontstyles for each of sans and serif, CapsSans
(cs) and RomanCaps (rc). The basic definitions look something like:
\starttypescript [serif] [romancaps] [size]
\definebodyfont
[17.3pt,16pt,14.4pt,13pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][rc]
[tf=SerifCaps sa 1,
tfa=SerifCaps sa \magfactor1,
tfb=SerifCaps sa \magfactor2,
tfc=SerifCaps sa \magfactor3,
tfd=SerifCaps sa \magfactor4,
bf=SerifCapsBold sa 1,
bfa=SerifCapsBold sa \magfactor1,
bfb=SerifCapsBold sa \magfactor2,
bfc=SerifCapsBold sa \magfactor3,
bfd=SerifCapsBold sa \magfactor4,
it=SerifCapsItalic sa 1,
ita=SerifCapsItalic sa \magfactor1,
itb=SerifCapsItalic sa \magfactor2,
itc=SerifCapsItalic sa \magfactor3,
itd=SerifCapsItalic sa \magfactor4,
bi=SerifCapsBoldItalic sa 1,
bia=SerifCapsBoldItalic sa \magfactor1,
bib=SerifCapsBoldItalic sa \magfactor2,
bic=SerifCapsBoldItalic sa \magfactor3,
bid=SerifCapsBoldItalic sa \magfactor4]
\stoptypescript
\starttypescript [sans] [sanscaps] [size]
\definebodyfont
[17.3pt,16pt,14.4pt,13pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt][cs]
[tf=SansCaps sa 1,
tfa=SansCaps sa \magfactor1,
%% ...
bid=SansCapsBoldItalic sa \magfactor4]
\stoptypescript
If you create font synonyms for each of the three extra symbolic names
for each font, and use the above typescripts, then you can call the Small
Caps font directly with a style switch (\rc\bi), with a style switch, but
keeping the alternative (\switchstyleonly\cs), or with the following
\SmCap macro, which tries to be a little cleverer about the available
alternatives. I haven't worked the ungrouped \kap command into it,
because I'm not sure how.
\def\SSSmCap{ss} \def\SSmCap{cs} % Don't know how else to compare.
\def\SmCap
{\ifx\fontstyle\SSSmCap\doifdefinedelse{cs}
{\switchstyleonly[cs]}{\sc}\else
\ifx\fontstyle\SSmCap \else% Do nothing: we're already there
\doifdefinedelse{rc}
{\switchstyleonly[rc]}{\sc}\fi\fi}
\let\OldStyle\SmCap
[be gentle... it's my first command with lower-level macros]
I'm hoping to write this up as a "My Way" before too long, but I wanted
to get this idea out there for some feedback. As my recent posts suggest,
it requires some extra font memory.
hope that's of some use,
adam
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay atl@comp.lancs.ac.uk
Computing Dept, Lancaster University +44(0)1524/594.537
Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2003-04-15 23:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-09 19:57 Bill McClain
2003-04-09 20:09 ` Bruce D'Arcus
2003-04-09 20:36 ` Bill McClain
2003-04-09 21:04 ` Bruce D'Arcus
2003-04-09 22:10 ` Jens-Uwe Morawski
2003-04-09 22:44 ` Adam Lindsay
2003-04-15 23:49 ` Adam Lindsay [this message]
2003-04-09 21:27 ` Jens-Uwe Morawski
2003-04-10 12:09 ` Bill McClain
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=20030415234923.20938@news.comp.lancs.ac.uk \
--to=atl@comp.lancs.ac.uk \
--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).