ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: XeTeX old style numerals
Date: Fri, 19 Sep 2008 20:57:52 +0200	[thread overview]
Message-ID: <6faad9f00809191157u67b00f5fx2f205b4fa53d85a2@mail.gmail.com> (raw)
In-Reply-To: <loom.20080919T175355-385@post.gmane.org>

On Fri, Sep 19, 2008 at 8:07 PM, Mohamed Bana wrote:
> Hi guys,
>
> Why doesn't this definition use the old style numerals that come with the font?
>  It seems to use the latin modern font when I try to use \os.  Small caps are
> working fine.
>
> I'd like all the numbers in the document to be typeset in old style numerals
> unless I tell it otherwise, btw how do I achieve the latter?

I didn't tell you that:

\definefontfeature
 [default]
 [script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,onum=yes]

(the important setting is only "onum=yes")

The problem is that that's only a dirty trick that is not supposed to
work and might stop working in the future, so I would rather try not
to rely on it. A better interface for XeTeX typescripts (something
similar to fontspec) is missing heavily.

------------

Concerning your first problem: I have tried patching Xsans definitions with

\definefontfeature
  [oldstyle]
  [script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,onum=yes]

\starttypescript[Xserif][all][name]
\definefontsynonym [DummyOldStyle]  [name:\typescripttwo]   [features=oldstyle]
%\definefontsynonym [DummyOldStyle]  [name:'\typescripttwo']
[features=oldstyle]
\definefontsynonym [OldStyle]       [DummyOldStyle]
\stoptypescript

\definetypeface[myface][rm][Xserif][Warnock Pro]
\setupbodyfont[myface, 11pt]

\starttext
{\os 123456789}
\stoptext

but I have no idea why it fails.

kpathsea: Invalid fontname `name:Warnock', contains ':'
! Font \thedefinedfont=name:Warnock not loadable: Metric (TFM) file or installe
d font not found.
<to be read again>
                   P
<argument> name:Warnock P
                         ro
\dotruefontname ... #1\endcsname *#2#3\fi \else #1
                                                  \ifx #2\empty \else *#2#3\...

\dotruefontname ... \??ff \fontclass #1\endcsname
                                                  \else \@EA \redotruefontna...

\dotruefontname ... \??ff \fontclass #1\endcsname
                                                  \else \@EA \redotruefontna...

\symbolicsizedfont ...ntname {\glyphfontfile {#3}}
                                                   at \currentfontbodyscale ...
l.32 {\os
          123456789}

The alternative fails with

kpathsea: Invalid fontname `name:Warnock Pro*oldstyle', contains ':'
! Font \thedefinedfont="name:Warnock Pro*oldstyle" at 11.0pt not loadable: Metr
ic (TFM) file or installed font not found.
<recently read> \scaledfont

\symbolicsizedfont ...ntfontbodyscale \scaledfont
                                                  \thedefinedfont
l.32 {\os
          123456789}


Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2008-09-19 18:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-19 18:07 Mohamed Bana
2008-09-19 18:57 ` Mojca Miklavec [this message]
2008-09-20  2:09   ` Mohamed Bana
2008-09-20 10:49     ` Hans Hagen
2008-10-11 20:10       ` Mohamed Bana
2008-10-14 12:07         ` Wolfgang Schuster
2008-10-14 17:16           ` Mohamed Bana
2008-10-18 21:19           ` Jeff Smith
2008-10-18 21:56             ` Mojca Miklavec
2008-10-19  0:47               ` Jeff Smith
2008-10-19 15:31           ` Mohamed Bana
2008-09-21  5:44   ` Yue Wang
2008-09-21 16:01     ` Hans Hagen

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=6faad9f00809191157u67b00f5fx2f205b4fa53d85a2@mail.gmail.com \
    --to=mojca.miklavec.lists@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).