From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: old style nums
Date: Wed, 2 Jan 2008 16:05:37 +0100 [thread overview]
Message-ID: <20080102160537.045a900f.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <op.t4a4dvfynx1yh1@your-b27fb1c401>
On Wed, 02 Jan 2008 07:40:33 -0700
"Idris Samawi Hamid" <ishamid@colostate.edu> wrote:
> On Wed, 02 Jan 2008 01:37:08 -0700, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>
> >> You also have to define "oldstyle" :-)
> >
> > No, you don't have to, because oldstyle is predefined in type-ini.tex,
> > two other predefined fontfeatures are "default" and "smallcaps" :-)
>
> Did you try it? worketh not ;-)
It did work for me but I got a error message for the next line,
<errormessage>
error: ...2tex/share/texmf-local/tex/context/base/font-otf.lua:2018:
attempt to index field 'description' (a nil value)
.
l.12
?
</errormessage>
My testfile:
01 % engine=luatex
02
03 \definefontfeature
04 [oldstyle]
05 [liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes] % texligatures=yes,texquotes=yes
06
07 \setfontfeature{oldstyle}
08
09 \starttext
10
11 123456789
12
13 \stoptext
I could set "tlig=no" and the error message vanishes.
> >> ==========================================
> % engine=luatex
>
> \setfontfeature{oldstyle}
>
> \starttext
>
> test
>
> 1234567890
>
> \stoptext
> >> PS Note that tnum (tabular version) looks better than onum alone, but
> >> is a
> >> function of onum in the font so cannot be invoked unless onum is invoked
> >> first.
>
> > \definefontfeature[tnum][tnum=yes,onum=yes]
>
> Hmm, I assumed the order would be [onum=yes,tnum=yes], or does the order
> not matter?
I think not in this case, but a few OpenType features disable other
(e.g. onum and lnum) and the order could be in souch a case.
Wolfgang
___________________________________________________________________________________
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:[~2008-01-02 15:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-31 8:50 Idris Samawi Hamid
2008-01-01 23:09 ` Wolfgang Schuster
2008-01-02 2:56 ` Idris Samawi Hamid
2008-01-02 8:37 ` Wolfgang Schuster
2008-01-02 14:40 ` Idris Samawi Hamid
2008-01-02 15:05 ` Wolfgang Schuster [this message]
2008-01-02 15:06 ` Taco Hoekwater
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=20080102160537.045a900f.schuster.wolfgang@googlemail.com \
--to=schuster.wolfgang@googlemail.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).