From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Capital number when onum=yes?
Date: Mon, 11 May 2009 08:52:52 +0200 [thread overview]
Message-ID: <E7E53621-9C82-4B40-9015-8530BE5BFF05@uni-bonn.de> (raw)
In-Reply-To: <20090511063940.GA12927@Fity>
On May 11, 2009, at 8:39 AM, Corsair wrote:
> Thanks you for the reply! But it doesn't work for me, because small
> cap numbers in Adobe Caslon Pro are themselves old-style...
I don't use XeTeX, but this works in mkiv:
\definefontfeature
[mydefault]
[mode
=
node
,script=latn,language=dflt,liga=yes,onum=yes,kern=yes,tlig=yes,trep=yes]
\definefontfeature
[mycaps]
[mode
=node,script=latn,language=dflt,liga=yes,lnum=yes,kern=yes,smcp=yes]
\starttypescript [serif] [caslon]
\definefontsynonym [Caslon-Roman]
[name:acaslonproregular] [features=mydefault]
\definefontsynonym [Caslon-Bold] [name:acaslonprobold]
[features=mydefault]
\definefontsynonym [Caslon-Italic] [name:acaslonproitalic]
[features=mydefault]
\definefontsynonym [Caslon-Bold-Italic]
[name:acaslonprobolditalic] [features=mydefault]
\definefontsynonym [Caslon-SmallCaps]
[name:acaslonproregular] [features=mycaps]
\stoptypescript
\starttypescript [serif] [caslon]
\definefontsynonym [Serif] [Caslon-Roman]
[features=mydefault]
\definefontsynonym [SerifItalic] [Caslon-Italic]
[features=mydefault]
\definefontsynonym [SerifBold] [Caslon-Bold]
[features=mydefault]
\definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic]
[features=mydefault]
\definefontsynonym [SerifCaps] [Caslon-SmallCaps]
[features=mycaps]
\stoptypescript
\starttypescript [Caslon]
\definetypeface [Caslon] [rm] [serif] [caslon] [default]
\stoptypescript
\usetypescript[Caslon]
\setupbodyfont[Caslon,12pt]
\starttext
These are oldstyle: 1 2 3 4 5 6 7 8 9 0
{\sc These are not: 1 2 3 4 5 6 7 8 9 0}
\stoptext
HTH
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-05-11 6:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-10 16:25 Corsair
2009-05-10 19:44 ` Hans Hagen
2009-05-11 2:05 ` Corsair
2009-05-11 6:13 ` Thomas A. Schmitz
2009-05-11 6:37 ` Henning Hraban Ramm
2009-05-11 6:58 ` Corsair
2009-05-11 7:32 ` Corsair
2009-05-11 6:39 ` Corsair
2009-05-11 6:52 ` Thomas A. Schmitz [this message]
2009-05-11 7:28 ` Hans Hagen
2009-05-11 7:40 ` Corsair
2009-05-11 7:50 ` Hans Hagen
2009-05-11 7:51 ` Wolfgang Schuster
2009-05-11 6:35 ` Wolfgang Schuster
2009-05-11 6:57 ` Corsair
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=E7E53621-9C82-4B40-9015-8530BE5BFF05@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--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).