ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michel Bovani <michel.bovani@wanadoo.fr>
Subject: Adding font commands
Date: Sat, 12 Oct 2002 19:37:05 +0200	[thread overview]
Message-ID: <B9CE2A61.10DB7%michel.bovani@wanadoo.fr> (raw)

I have added some fonts commands because I want to be able to use semi-bold,
extra-bold and a variant of the text font with old style digits.

Is there a standard way for that in context ?

I used

\definebodyfont
[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt]
[rm] [ tf=Serif sa 1,
...
db=SerifSemiBold sa 1,
dba=SerifSemiBold sa a,dbb=SerifSemiBold sa b,
dbc=SerifSemiBold sa c,dbd=SerifSemiBold sa d,
dbx=SerifSemiBold sa x,dbxx=SerifSemiBold sa xx,
di=SerifSemiItalic sa 1,
dia=SerifSemiItalic sa a,dib=SerifSemiItalic sa b,
dic=SerifSemiItalic sa c,did=SerifSemiItalic sa d,
dix=SerifSemiItalic sa x,dixx=SerifSemiItalic sa xx,
ds=SerifSemiSlanted sa 1,
dsa=SerifSemiSlanted sa a,dsb=SerifSemiSlanted sa b,
dsc=SerifSemiSlanted sa c,dsd=SerifSemiSlanted sa d,
dsx=SerifSemiSlanted sa x,dsxx=SerifSemiSlanted sa xx,
dc=SerifSemiCaps sa 1,
dca=SerifSemiCaps sa a,dcb=SerifSemiCaps sa b,
dcc=SerifSemiCaps sa c,dcd=SerifSemiCaps sa d,
dcx=SerifSemiCaps sa x,dcxx=SerifSemiCaps sa xx,
...
ebf=SerifBlack sa 1,
ebfa=SerifBlack sa a,ebfb=SerifBlack sa b,
ebfc=SerifBlack sa c,ebfd=SerifBlack sa d,
ebfx=SerifBlack sa x,ebfxx=SerifBlack sa xx,
ebs=SerifBlackSlanted sa 1,
ebsa=SerifBlackSlanted sa a,ebsb=SerifBlackSlanted sa b,
ebsc=SerifBlackSlanted sa c,ebsd=SerifBlackSlanted sa d,
ebsx=SerifBlackSlanted sa x,ebsxx=SerifBlackSlanted sa xx
]

and for the old-style variant

\definebodyfont
[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt]
[ro] [ tf=Serif-OldStyle sa 1,
it=SerifItalic-OldStyle sa 1,
sl=SerifSlanted-OldStyle sa 1,
sc=SerifCaps-OldStyle sa 1,
db=SerifSemiBold-OldStyle sa 1,
...
]

are commands like \db \di \ds \ebf \ebs and \ro convenient in terms of
ConTeXt interface ?

Of course I use \definefontsynonym to map things like SerifItalic-OldStyle
to a real tfm font.

-- 
Michel Bovani



                 reply	other threads:[~2002-10-12 17:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=B9CE2A61.10DB7%michel.bovani@wanadoo.fr \
    --to=michel.bovani@wanadoo.fr \
    /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).