* How to enable tabular numerals with simplefonts and otf?
@ 2012-06-09 22:01 Peter Münster
2012-06-10 8:01 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2012-06-09 22:01 UTC (permalink / raw)
To: ConTeXt users
Hi,
How can I enable tabular numerals please?
Test file, that does not work:
--8<---------------cut here---------------start------------->8---
\usemodule[simplefonts]
\setmainfont[LinLibertineIO][size=10pt, tnum=yes]
\starttext
\addff{tnum}
\setff{tnum}
565656565656X\par
000000000000X
\stoptext
--8<---------------cut here---------------end--------------->8---
TIA for any help!
--
Peter
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to enable tabular numerals with simplefonts and otf?
2012-06-09 22:01 How to enable tabular numerals with simplefonts and otf? Peter Münster
@ 2012-06-10 8:01 ` Wolfgang Schuster
2013-10-19 20:57 ` Peter Münster
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-06-10 8:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 10.06.2012 um 00:01 schrieb Peter Münster:
> Hi,
>
> How can I enable tabular numerals please?
>
> Test file, that does not work:
>
> --8<---------------cut here---------------start------------->8---
> \usemodule[simplefonts]
> \setmainfont[LinLibertineIO][size=10pt, tnum=yes]
> \starttext
> \addff{tnum}
> \setff{tnum}
> 565656565656X\par
> 000000000000X
> \stoptext
> --8<---------------cut here---------------end--------------->8---
\usemodule[simplefonts]
\definefontfeature[default][default][tnum=yes]
\setmainfont[Linux Libertine O]
\setupbodyfont[10pt]
\starttext
565656565656X\par
000000000000X
\stoptext
or
\definefontfeature[default][default][tnum=yes]
\setupbodyfont[libertine,10pt]
\starttext
565656565656X\par
000000000000X
\stoptext
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to enable tabular numerals with simplefonts and otf?
2012-06-10 8:01 ` Wolfgang Schuster
@ 2013-10-19 20:57 ` Peter Münster
2013-10-19 22:28 ` Hans Hagen
2013-10-20 5:56 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Peter Münster @ 2013-10-19 20:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, Jun 10 2012, Wolfgang Schuster wrote:
> \definefontfeature[default][default][tnum=yes]
Hi,
What's the new method please?
I've tried this, but without success:
--8<---------------cut here---------------start------------->8---
\definefontfamily[mainface][rm][Linux Libertine Initials O][features=tnum]
\definefontfeature[default][default][tnum=yes]
\setupbodyfont[mainface]
\starttext
\addff{tnum}
\setff{tnum}
\feature[+][tnum]
\feature[+][tnum=yes]
565656565656X\par
000000000000X
\stoptext
--8<---------------cut here---------------end--------------->8---
TIA for any help,
--
Peter
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to enable tabular numerals with simplefonts and otf?
2013-10-19 20:57 ` Peter Münster
@ 2013-10-19 22:28 ` Hans Hagen
2013-10-19 22:53 ` Hans Hagen
2013-10-20 5:56 ` Wolfgang Schuster
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2013-10-19 22:28 UTC (permalink / raw)
To: ntg-context
On 10/20/2013 5:57 AM, Peter Münster wrote:
> On Sun, Jun 10 2012, Wolfgang Schuster wrote:
>
>> \definefontfeature[default][default][tnum=yes]
>
> Hi,
>
> What's the new method please?
>
> I've tried this, but without success:
>
> --8<---------------cut here---------------start------------->8---
> \definefontfamily[mainface][rm][Linux Libertine Initials O][features=tnum]
> \definefontfeature[default][default][tnum=yes]
> \setupbodyfont[mainface]
> \starttext
> \addff{tnum}
> \setff{tnum}
> \feature[+][tnum]
> \feature[+][tnum=yes]
> 565656565656X\par
> 000000000000X
> \stoptext
> --8<---------------cut here---------------end--------------->8---
we probably need a well defined set of predefined features
\setupbodyfont[pagella]
\definefontfeature[inlinenumbers] [lnum=yes]
\definefontfeature[oldstylenumbers][onum=yes]
\definefontfeature[tabularnumbers] [tnum=yes]
\starttext
% 565656565656X\par
% 000000000000X\par
% 111111111111X\par
% \feature[+][inlinenumbers]
565656565656X\par
000000000000X\par
111111111111X\par
\feature[+][oldstylenumbers]
565656565656X\par
000000000000X\par
111111111111X\par
\feature[+][tabularnumbers]
565656565656X\par
000000000000X\par
111111111111X\par
\stoptext
the problem is that combining features is possible but that
is very font dependent
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to enable tabular numerals with simplefonts and otf?
2013-10-19 22:28 ` Hans Hagen
@ 2013-10-19 22:53 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2013-10-19 22:53 UTC (permalink / raw)
To: ntg-context
On 10/20/2013 7:28 AM, Hans Hagen wrote:
> the problem is that combining features is possible but that
> is very font dependent
\definefontfeature[inlinenumbers] [lnum=yes,tnum=no]
\definefontfeature[tabularnumbers] [tnum=yes,lnum=no]
\addfeature[tabularnumbers]
Maybe table mechanisms should have a special key for it (number=yes or
so). It needs a bit of thinking.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to enable tabular numerals with simplefonts and otf?
2013-10-19 20:57 ` Peter Münster
2013-10-19 22:28 ` Hans Hagen
@ 2013-10-20 5:56 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2013-10-20 5:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 19.10.2013 um 22:57 schrieb Peter Münster <pmlists@free.fr>:
> On Sun, Jun 10 2012, Wolfgang Schuster wrote:
>
>> \definefontfeature[default][default][tnum=yes]
>
> Hi,
>
> What's the new method please?
>
> I've tried this, but without success:
>
> --8<---------------cut here---------------start------------->8---
> \definefontfamily[mainface][rm][Linux Libertine Initials O][features=tnum]
> \definefontfeature[default][default][tnum=yes]
> \setupbodyfont[mainface]
> \starttext
> \addff{tnum}
> \setff{tnum}
> \feature[+][tnum]
> \feature[+][tnum=yes]
> 565656565656X\par
> 000000000000X
> \stoptext
> --8<---------------cut here---------------end--------------->8---
The features key from \definefontfamily expects the name of a feature set (first argument
of \definefontfeature) and not the name of a opentype feature.
Even when you use the correct it won’t help because the font has a no spacing for
the number 3 to 9.
\definefontfeature[default][default][tnum=yes]
\definefontfamily[mainface][rm][Linux Libertine Initials O]
\setupbodyfont[mainface,50pt]
\starttext
\dorecurse{9}{\expanded{\dorecurse{9}{\recurselevel}}\par}
\stoptext
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-10-20 5:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-09 22:01 How to enable tabular numerals with simplefonts and otf? Peter Münster
2012-06-10 8:01 ` Wolfgang Schuster
2013-10-19 20:57 ` Peter Münster
2013-10-19 22:28 ` Hans Hagen
2013-10-19 22:53 ` Hans Hagen
2013-10-20 5:56 ` Wolfgang Schuster
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).