From: Corsair <chris.corsair@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Capital number when onum=yes?
Date: Mon, 11 May 2009 15:32:47 +0800 [thread overview]
Message-ID: <20090511073247.GA2566@Fity> (raw)
In-Reply-To: <01E22095-D6DE-4B5B-8127-44768510EB1B@fiee.net>
[-- Attachment #1.1: Type: text/plain, Size: 2476 bytes --]
On Mon, May 11, 2009 at 08:37:46AM +0200, Henning Hraban Ramm wrote:
> Similarly you could define an additional variant, like "noos".
> http://wiki.contextgarden.net/Font_Variants
>
> (Didn't check if font variants work ok in MkIV; I used them only for
> light and medium weights before.)
I tried this approach and failed. I compiled the following code with
texexec --xtx, and the resulting PDF contained nothing except an
old-style page number... Any idea?
# --------------- ConTeXt code ---------------
\definefontfeature [old] [onum=yes]
\definefontfeature [noos] [onum=no]
\definefontfeature [smcap] [smcp=yes]
\starttypescript [serif] [caslon]
\definefontsynonym [Caslon-Roman] [file:ACaslonPro-Regular] [features=old]
\definefontsynonym [Caslon-Roman-NoOs] [file:ACaslonPro-Regular] [features=noos]
\definefontsynonym [Caslon-Bold] [file:ACaslonPro-Bold] [features=old]
\definefontsynonym [Caslon-Italic] [file:ACaslonPro-Italic] [features=old]
\definefontsynonym [Caslon-Bold-Italic] [file:ACaslonPro-BoldItalic] [features=old]
\definefontsynonym [Caslon-SmallCaps] [file:ACaslonPro-Regular] [features=smcap]
\stoptypescript
\starttypescript [serif] [caslon] [name]
\definefontsynonym [Serif] [Caslon-Roman]
\definefontsynonym [SerifItalic] [Caslon-Italic]
\definefontsynonym [SerifBold] [Caslon-Bold]
\definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic]
\definefontsynonym [SerifCaps] [Caslon-SmallCaps]
\definefontvariant [Serif][noos][NoOs]
\definefontsynonym [SerifRegular] [Serif]
\definefontsynonym [SerifRegularNoOs] [Caslon-Roman-NoOs]
\definefontsynonym [SerifItalicNoOs] [Caslon-Italic]
\definefontsynonym [SerifBoldNoOs] [Caslon-Bold]
\definefontsynonym [SerifBoldItalicNoOs] [Caslon-Bold-Italic]
\stoptypescript
\usetypescript[caslon]
\starttypescript [prof]
\definetypeface [prof] [rm] [serif] [caslon] [default]
\stoptypescript
\usetypescript[prof]
\setupbodyfont[prof, 12pt]
\starttext
{\Var[noos] 1234567890}
\stoptext
# --------------- End of ConTeXt code---------------
%%% Local Variables:
%%% mode: context
%%% TeX-PDF-mode: t
%%% End:
--
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 7:32 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 [this message]
2009-05-11 6:39 ` Corsair
2009-05-11 6:52 ` Thomas A. Schmitz
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=20090511073247.GA2566@Fity \
--to=chris.corsair@gmail.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).