Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-03 Thread Pablo Rodriguez
On 06/03/2017 09:58 AM, Jose Luis Arellano wrote:
> Thanks guys, but unfortunately the code provided doesn't works.
> 
> \definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]
> \definefontfeature[mathdigits][tnum=yes,lnum=yes]

José Luis,

could you provide a minimal complete sample that shows the issue?

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-03 Thread Jose Luis Arellano
Thanks guys, but unfortunately the code provided doesn't works.

\definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]
\definefontfeature[mathdigits][tnum=yes,lnum=yes]

2017-06-02 3:47 GMT-04:00 Hans Hagen :

> On 6/2/2017 7:40 AM, Pablo Rodriguez wrote:
>
>> On 06/02/2017 06:40 AM, Jose Luis Arellano wrote:
>>
>>> Dear Wolfgang.
>>>
>>> In recents versions of Context, what is the correct way to use lnum
>>> feature in maths?
>>>
>>> This doesn't works anymore:
>>>
>>> \definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
>>>
>>
>> José Luis,
>>
>> I think that line should read:
>>
>>  \definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]
>>
>> But without a sample, I’m afraid I cannot test it.
>>
>> Just in case it might help,
>>
>> Pablo
>>
> most math setups have an (unset) mathextra featureset that you can use for
> such extra features and indeed one should not inherit from defult
>
>   \definefontfeature[mathdigits][tnum=yes,lnum=yes]
>
> of course it also depends on what a font provides (if we're talking
> alternates one can also use the normal 'alternates' feature switching in
> math)
>
> Hans
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> 
> ___
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-02 Thread Hans Hagen

On 6/2/2017 7:40 AM, Pablo Rodriguez wrote:

On 06/02/2017 06:40 AM, Jose Luis Arellano wrote:

Dear Wolfgang.

In recents versions of Context, what is the correct way to use lnum
feature in maths?

This doesn't works anymore:

\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]


José Luis,

I think that line should read:

 \definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]

But without a sample, I’m afraid I cannot test it.

Just in case it might help,

Pablo
most math setups have an (unset) mathextra featureset that you can use 
for such extra features and indeed one should not inherit from defult


  \definefontfeature[mathdigits][tnum=yes,lnum=yes]

of course it also depends on what a font provides (if we're talking 
alternates one can also use the normal 'alternates' feature switching in 
math)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-01 Thread Pablo Rodriguez
On 06/02/2017 06:40 AM, Jose Luis Arellano wrote:
> Dear Wolfgang.
> 
> In recents versions of Context, what is the correct way to use lnum
> feature in maths?
> 
> This doesn't works anymore:
> 
> \definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]

José Luis,

I think that line should read:

\definefontfeature[mathdigits][mode=base,tnum=yes,lnum=yes]

But without a sample, I’m afraid I cannot test it.

Just in case it might help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2017-06-01 Thread Jose Luis Arellano
Dear Wolfgang.

In recents versions of Context, what is the correct way to use lnum feature
in maths?

This doesn't works anymore:

\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
\definefallbackfamily[mainface][math][...][preset=math:digitsnormal,features
=mathdigits]

Thanks in advance.

2016-08-29 19:31 GMT-03:00 Jose Luis Arellano :

> Thanks 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
Thanks 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Wolfgang Schuster

Jose Luis Arellano 
29. August 2016 um 23:22
2016-08-29 18:02 GMT-03:00 Wolfgang Schuster:

Do you use Minion Math?

No, am using another commercial font (Fedra Serif B Pro) without math
support and \definefallbackfamily.
You last example was misleading because you tried to change the features 
of the math font.

Does this work (untested)?

No.
This is what am using:

\definefontfeature[default][default][tnum=yes,lnum=yes]
\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
\definefontfamily[mainface][serif][...]
\definefallbackfamily[mainface][math][...][preset=math:digitsnormal,features=mathdigits]
\definefontfamily[mainface][math][DejaVu Math]
\setupbodyfont[mainface,10pt]

\starttext
0123456789\par
\m{0123456789}
\stoptext

You can see the result in the attached PDF.

I can reproduce it with one of my fonts but have no solution for it.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
2016-08-29 18:02 GMT-03:00 Wolfgang Schuster :
> Do you use Minion Math?
No, am using another commercial font (Fedra Serif B Pro) without math
support and \definefallbackfamily.
> Does this work (untested)?
No.
This is what am using:

\definefontfeature[default][default][tnum=yes,lnum=yes]
\definefontfeature[mathdigits][default][mode=base,tnum=yes,lnum=yes]
\definefontfamily[mainface][serif][...]
\definefallbackfamily[mainface][math][...][preset=math:digitsnormal,features=mathdigits]
\definefontfamily[mainface][math][DejaVu Math]
\setupbodyfont[mainface,10pt]

\starttext
0123456789\par
\m{0123456789}
\stoptext

You can see the result in the attached PDF.


numbers.pdf
Description: Adobe PDF document
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Wolfgang Schuster

Jose Luis Arellano 
29. August 2016 um 22:45
After some research, i founded (in Wiki) that space after a comma can
be avoided using: \setupmathematics[autopunctuation=all]. Sorry for
that.

So, only left second question. This is about opentype features,
specifically tabular numbers in math mode. This issue (i think) is
related to the commercial font that am using, because it have some OT
features enabled by default (eg: onum=yes, tnum=no and lnum=no).

Do you use Minion Math?

Curious is that i can only set lnum and onum but not tnum in math.

Does this work (untested)?

\definefontfamily[inlinemath][mode=base,lnum=yes] % tnum=yes etc.

\definefontfamily[…][mm][…][tf=features:inlinemath]

BTW: You can list all features of a font with "mtxrun --script fonts 
--list --info ".


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
After some research, i founded (in Wiki) that space after a comma can
be avoided using: \setupmathematics[autopunctuation=all]. Sorry for
that.

So, only left second question. This is about opentype features,
specifically tabular numbers in math mode. This issue (i think) is
related to the commercial font that am using, because it have some OT
features enabled by default (eg: onum=yes, tnum=no and lnum=no).
Curious is that i can only set lnum and onum but not tnum in math.
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Opentype features and space after comma in math mode

2016-08-29 Thread Jose Luis Arellano
Hello list,
Two questions:

1) How can i enable opentype features (onum, lnum, tnum) in math mode?
2) How can i avoid the space after comma in math mode?

I tried this without success:

\definefontfeature[default][default][onum=yes,lnum=no,tnum=no]
\definefontfeature[lnum][default][onum=yes,lnum=no,tnum=no,mode=base]
\definefontfamily[mainface][serif][TeX Gyre Pagella]
\definefontfamily[mainface][math][TeX Gyre Pagella Math][features=lnum]
\setupbodyfont[mainface]

\starttext
1,123\par
\m{1,123}\par
\stoptext

Thanks in advance...
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] OpenType Features

2009-05-14 Thread Wolfgang Schuster

You asked the same questions a few days ago, what's your problem
with the answers you got last time?

Wolfgang


Am 14.05.2009 um 14:18 schrieb Arun Dev:



Hello,

   I am using Context Mark II + XeTeX. I would like to know the  
following things.


1. How to use opentype font features. I tried the following code but  
it is not working.

  \definefontfeature[myfontfea][+onum]
  \definetypeface[Libertine][rm][Xserif][Linux Libertine O][default] 
[features=myfontfea]

  \setupbodyfont[Libertine,12pt]

2. Is there an eqivalent code to the following XeLaTeX code.
  \defaultfontfeatures{Scale=MatchLowercase}
3. How to use Cambria Math font to typeset math.


___
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
___


Re: [NTG-context] OpenType Features

2009-05-14 Thread Hans Hagen

Arun Dev wrote:

Hello,

   I am using Context Mark II + XeTeX. I would like to know the
following things.

1. How to use opentype font features. I tried the following code but it is
not working.
  \definefontfeature[myfontfea][+onum]
  \definetypeface[Libertine][rm][Xserif][Linux Libertine
O][default][features=myfontfea]
  \setupbodyfont[Libertine,12pt]


\definefontfeature[myfontfea][onum=yes]



2. Is there an eqivalent code to the following XeLaTeX code.
  \defaultfontfeatures{Scale=MatchLowercase}


i have no clue what that is supposed to do


3. How to use Cambria Math font to typeset math.


\usetypescript[cambria] \setupbodyfont[cambria]

but only in mkiv

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] OpenType Features

2009-05-14 Thread Arun Dev
Hello,

   I am using Context Mark II + XeTeX. I would like to know the
following things.

1. How to use opentype font features. I tried the following code but it is
not working.
  \definefontfeature[myfontfea][+onum]
  \definetypeface[Libertine][rm][Xserif][Linux Libertine
O][default][features=myfontfea]
  \setupbodyfont[Libertine,12pt]

2. Is there an eqivalent code to the following XeLaTeX code.
  \defaultfontfeatures{Scale=MatchLowercase}

3. How to use Cambria Math font to typeset math.
___
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
___


Re: [NTG-context] Opentype features

2009-05-11 Thread Wolfgang Schuster


Am 11.05.2009 um 09:37 schrieb Hans Hagen:


Wolfgang Schuster wrote:


2. Is there an eqivalent code to the following XeLaTeX code.

 \defaultfontfeatures{Scale=MatchLowercase}


Only when you port the fontspec package to ConTeXt.


i can not even imagine what it is supposed to mean -)


Write a module which has the same functionality as the fontspec  
package for XeLaTeX.


http://www.ctan.org/get/macros/xetex/latex/fontspec/fontspec.pdf

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
___


Re: [NTG-context] Opentype features

2009-05-11 Thread Hans Hagen

Wolfgang Schuster wrote:


2. Is there an eqivalent code to the following XeLaTeX code.

  \defaultfontfeatures{Scale=MatchLowercase}


Only when you port the fontspec package to ConTeXt.


i can not even imagine what it is supposed to mean -)


3. How to use Cambria Math font to typeset math.


MkII (XeTeX): Write the code to use OpenType math fonts and send it to 
Hans.


open type math in mkii is unlikely to happen soon (ok, at some point i 
can just generate the symbol etc initializations from the mkiv lua 
tables but it has a very low priority)


in mkiv there is some trickery that cannot be ported and i'm not going 
to cripple new (otf math related code) by fuzzy sharing with mkii



Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Opentype features

2009-05-10 Thread Wolfgang Schuster


Am 10.05.2009 um 14:52 schrieb Arun Dev:


Hello,

I am using Context Mark II + XeTeX. I would like to know the  
following things.


1. How to use opentype font features. I tried the following code but  
it is not working.


  \definefontfeature[myfontfea][+onum]
  \definetypeface[Libertine][rm][Xserif][Linux Libertine O][default] 
[features=myfontfea]

   \setupbodyfont[Libertine,12pt]


\definefontfeature[default][default][onum=yes]
\definetypeface[Libertine][rm][Xserif][Linux Libertine O][default]
\setupbodyfont[Libertine]


2. Is there an eqivalent code to the following XeLaTeX code.

  \defaultfontfeatures{Scale=MatchLowercase}


Only when you port the fontspec package to ConTeXt.


3. How to use Cambria Math font to typeset math.


MkII (XeTeX): Write the code to use OpenType math fonts and send it to  
Hans.


MkIV (LuaTeX): \definetypeface[Libertine][mm][math][cambria][default]

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
___


[NTG-context] Opentype features

2009-05-10 Thread Arun Dev
Hello,

   I am using Context Mark II + XeTeX. I would like to know the
following things.

1. How to use opentype font features. I tried the following code but it is
not working.
  \definefontfeature[myfontfea][+onum]
  \definetypeface[Libertine][rm][Xserif][Linux Libertine
O][default][features=myfontfea]
  \setupbodyfont[Libertine,12pt]

2. Is there an eqivalent code to the following XeLaTeX code.
  \defaultfontfeatures{Scale=MatchLowercase}

3. How to use Cambria Math font to typeset math.
___
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
___


Re: [NTG-context] OpenType features in XeTeX (Was: Some update woes on Linux)

2007-11-13 Thread Wolfgang Schuster
2007/11/13, Jeff Smith <[EMAIL PROTECTED]>:
> On Nov 12, 2007 11:00 AM, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
> > > Is [features=default] the place where we can access OpenType features?
> > > Let's say I have an OpenType font with several number styles (regular,
> > > proportional, etc.). Is it possible to use them? I've always wanted to
> > > ask this and be sure. Now seems the good time. :-)
> >
> > You can define your own features sets with \definefontfeature and use this
> > set later with "features=my feature set", "default" is only one of ConTeXt's
> > predefined feature sets but you define your own with every option you need.
> >
>
> Thank you VERY much Mojca and Wolfgang! With XeTeX now I can use the
> oldstyle numerals with my system-installed OpenType fonts. :-) I'm
> very, very happy with that. I really thought I had to wait for LuaTeX
> for that.
>
> Now, to push the features topic further on, before experimenting a bit
> I'd like to ask... does XeTeX support *all* OTF features? Well, I
> don't want to use all of them, but some more included with my font,
> and while I'm pretty sure it supports 'pnum', as it supports 'onum',
> I would also use the built-in superscript ('sups') and subscript
> ('subs') numerals.

I think this is true for XeTeX, but LuaTeX needs a little bit more time to
allow us to use all OpenType features in font (because this is controlled
by lua scripts).

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
___


Re: [NTG-context] OpenType features in XeTeX (Was: Some update woes on Linux)

2007-11-12 Thread Jeff Smith
On Nov 12, 2007 11:00 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
> > Is [features=default] the place where we can access OpenType features?
> > Let's say I have an OpenType font with several number styles (regular,
> > proportional, etc.). Is it possible to use them? I've always wanted to
> > ask this and be sure. Now seems the good time. :-)
>
> You can define your own features sets with \definefontfeature and use this
> set later with "features=my feature set", "default" is only one of ConTeXt's
> predefined feature sets but you define your own with every option you need.
>

Thank you VERY much Mojca and Wolfgang! With XeTeX now I can use the
oldstyle numerals with my system-installed OpenType fonts. :-) I'm
very, very happy with that. I really thought I had to wait for LuaTeX
for that.

Now, to push the features topic further on, before experimenting a bit
I'd like to ask... does XeTeX support *all* OTF features? Well, I
don't want to use all of them, but some more included with my font,
and while I'm pretty sure it supports 'pnum', as it supports 'onum',
I would also use the built-in superscript ('sups') and subscript
('subs') numerals.

Thanks again!
Jeff
___
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
___


Re: [NTG-context] OpenType features in XeTeX (Was: Some update woes on Linux)

2007-11-12 Thread Wolfgang Schuster
2007/11/12, Jeff Smith <[EMAIL PROTECTED]>:
> On Nov 10, 2007 9:23 PM, Mojca Miklavec <[EMAIL PROTECTED]> wrote:
>
> > You can say (features=default is optional)
> > \definefontsynonym[SomeFont][name:Font Name][features=default]
> > which means that XeTeX will call the font
> > \font\somefont="FontName;mapping=tex-text,..." (tex-text is
> > implied by features=default)
> >
>
> Is [features=default] the place where we can access OpenType features?
> Let's say I have an OpenType font with several number styles (regular,
> proportional, etc.). Is it possible to use them? I've always wanted to
> ask this and be sure. Now seems the good time. :-)

You can define your own features sets with \definefontfeature and use this
set later with "features=my feature set", "default" is only one of ConTeXt's
predefined feature sets but you define your own with every option you need.

A definition looks like:

\definefontfeature
  [my features]
  [a list of OpenType features]

You can enable features in the list with "feature=yes" and diable it
with "feature=no".

ConTeXt's three predefined features sets are

- default (ligaures and kerning, plus tex-text in XeTeX)
- smallcaps (default plus smallcaps)
- oldstyle (default plus oldstyle numerals)

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
___


Re: [NTG-context] OpenType features in XeTeX (Was: Some update woes on Linux)

2007-11-12 Thread Mojca Miklavec
On Nov 12, 2007 4:12 PM, Jeff Smith wrote:
> On Nov 10, 2007 9:23 PM, Mojca Miklavec wrote:
>
> > You can say (features=default is optional)
> > \definefontsynonym[SomeFont][name:Font Name][features=default]
> > which means that XeTeX will call the font
> > \font\somefont="FontName;mapping=tex-text,..." (tex-text is
> > implied by features=default)
> >
>
> Is [features=default] the place where we can access OpenType features?
> Let's say I have an OpenType font with several number styles (regular,
> proportional, etc.). Is it possible to use them? I've always wanted to
> ask this and be sure. Now seems the good time. :-)

I've sent this example to the mailing list once, so let's assume that
it still works :)
slant= and extend= are some features that are specific to XeTeX, not
to OpenType fonts themselves, but other features should in the same
way, I guess. I need to check once more, but one or more of the
features in the first line map to "mapping=tex-text", onum=yes maps to
+onum etc.

However, I don't know if there's a quick hack to say
   [features={default,slant=0.25}]
or something equal (thus applying only some features on top of an
already existing set).

\definefontfeature
  [slantedandextended]
   % cloned from "default", not all of them are really needed, if any at all
  [method=node,script=latn,language=dflt,liga=yes,onum=yes,kern=yes,
   slant=0.25,extend=1.5]
\definefontsynonym
  [myfont]
  [file:texgyrepagella-regular][features=slantedandextended]

\starttext
\definedfont[myfont] This is slanted and extended
\stoptext

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
___


Re: [NTG-context] OpenType features in XeTeX (Was: Some update woes on Linux)

2007-11-12 Thread Jeff Smith
On Nov 10, 2007 9:23 PM, Mojca Miklavec <[EMAIL PROTECTED]> wrote:

> You can say (features=default is optional)
> \definefontsynonym[SomeFont][name:Font Name][features=default]
> which means that XeTeX will call the font
> \font\somefont="FontName;mapping=tex-text,..." (tex-text is
> implied by features=default)
>

Is [features=default] the place where we can access OpenType features?
Let's say I have an OpenType font with several number styles (regular,
proportional, etc.). Is it possible to use them? I've always wanted to
ask this and be sure. Now seems the good time. :-)

Thanks,
Jeff
___
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
___