From: Giuseppe Bilotta <bourbaki@bigfoot.com>
Cc: ntg-context@ntg.nl
Subject: Re[2]: More font problems -- CMTT instead of Courier
Date: Sat, 29 Dec 2001 14:07:38 +0100 [thread overview]
Message-ID: <60314916.20011229140738@bigfoot.com> (raw)
In-Reply-To: <5.1.0.14.1.20011229013740.031da368@server-1>
>>Two things I often need are a (fake) caps font and (now) cmtt (e.g.,
>>instead of Courier). I can enable a caps font generated using fontutil by
>>redefining a few things right in my files, but I don't seem to be able to
>>make such tweaks work via a typescript file. The examples in the manuals
>>show how to add new fonts, but aren't as clear about what is needed when
>>you only want to make a small change to one of the predefined fonts. Now
>>that I have two things to tweak it makes more sense to create a new
>>typescript.
HH> in many cases you only need to remap a filename
HH> i think that it's worth looking into the caps and use cap fonts instead of
HH> scaled ones; it's more robust to have caps in the lowercase slots than to
HH> uppercase a string.
To use Times, Courier and Helvetica in their small caps variants I
have:
=== BEGIN SNIPPET ===
%D Let's define the Small Caps variant -- Berry names only, sorry.
%D And no variant available for 8R encoding.
%D Bold Caps is not used by ConTeXt (?)
% Times Roman (URW)
\starttypescript [serif] [times] [default]
\definefontsynonym [Times-Roman-Caps] [ptmrc7t] [encoding=default]
\definefontsynonym [Times-Bold-Caps] [ptmbc7t] [encoding=default]
\stoptypescript
% \starttypescript [serif] [times] [8r]
% \definefontsynonym [Times-Roman-Caps] [ptmrc] [encoding=8r]
% \definefontsynonym [Times-Bold-Caps] [ptmbc] [encoding=8r]
% \stoptypescript
\starttypescript [serif] [times] [ec]
\definefontsynonym [Times-Roman-Caps] [ptmrc8t] [encoding=ec]
\definefontsynonym [Times-Bold-Caps] [ptmbc8t] [encoding=ec]
\stoptypescript
% Courier (URW)
\starttypescript [mono] [courier] [default]
\definefontsynonym [Courier-Caps] [pcrrc7t] [encoding=default]
\definefontsynonym [Courier-Bold-Caps] [pcrbc7t] [encoding=default]
\stoptypescript
% \starttypescript [mono] [courier] [8r]
% \definefontsynonym [Courier-Caps] [pcrrc] [encoding=8r]
% \definefontsynonym [Courier-Bold-Caps] [pcrbc] [encoding=8r]
% \stoptypescript
\starttypescript [mono] [courier] [ec]
\definefontsynonym [Courier-Caps] [pcrrc8t] [encoding=ec]
\definefontsynonym [Courier-Bold-Caps] [pcrbc8t] [encoding=ec]
\stoptypescript
% Helvetica (URW)
\starttypescript [sans] [helvetica] [default]
\definefontsynonym [Helvetica-Caps] [phvrc7t] [encoding=default]
\definefontsynonym [Helvetica-Bold-Caps] [phvbc7t] [encoding=default]
\stoptypescript
% \starttypescript [sans] [helvetica] [8r]
% \definefontsynonym [Helvetica-Caps] [phvrc] [encoding=8r]
% \definefontsynonym [Helvetica-Bold-Caps] [phvbc] [encoding=8r]
% \stoptypescript
\starttypescript [sans] [helvetica] [ec]
\definefontsynonym [Helvetica-Caps] [phvrc8t] [encoding=ec]
\definefontsynonym [Helvetica-Bold-Caps] [phvbc8t] [encoding=ec]
\stoptypescript
%D Let's activate them
\starttypescript [serif] [times] [name]
\definefontsynonym [SerifCaps] [Times-Roman-Caps]
\definefontsynonym [SerifBoldCaps] [Times-Bold-Caps]
\stoptypescript
\starttypescript [sans] [helvetica] [name]
\definefontsynonym [SansCaps] [Helvetica-Caps]
\definefontsynonym [SansBoldCaps] [Helvetica-Bold-Caps]
\stoptypescript
\starttypescript [mono] [courier] [name]
\definefontsynonym [MonoCaps] [Courier-Caps]
\definefontsynonym [MonoBoldCaps] [Courier-Bold-Caps]
\stoptypescript
=== END SNIPPET ===
prev parent reply other threads:[~2001-12-29 13:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-25 18:53 Giuseppe Bilotta
2001-12-27 13:06 ` Hans Hagen
2001-12-28 16:35 ` George N. White III
[not found] ` <Pine.GSO.4.43.0112281144540.7580-100000@emerald.bio.dfo.ca >
2001-12-29 0:42 ` Hans Hagen
2001-12-29 13:07 ` Giuseppe Bilotta [this message]
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=60314916.20011229140738@bigfoot.com \
--to=bourbaki@bigfoot.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).