[NTG-context] tnum and aligncharacter=yes

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Oct 21 01:04:41 CEST 2013


Am 21.10.2013 um 00:55 schrieb Hans Hagen <pragma at wxs.nl>:

> On 10/21/2013 7:44 AM, Peter Münster wrote:
>> Hi,
>> 
>> aligncharacter=yes does not work with \addfeature[with-tnum]:
>> 
>> --8<---------------cut here---------------start------------->8---
>> \definefontfeature[with-tnum][default][tnum=yes]
>> \definefontfamily[mainface][sans][Alwyn New]
>> \setupbodyfont[mainface]
>> \setupTABLE[alignmentcharacter=., aligncharacter=yes]
>> \starttext
>> \startbuffer
>>   \bTABLE \bTR \bTD 111.111 \eTD \eTR \bTR \bTD 444.444 \eTD \eTR \eTABLE
>> \stopbuffer
>> \getbuffer\addfeature[with-tnum]\getbuffer
>> \stoptext
>> --8<---------------cut here---------------end--------------->8---
>> 
>> Please find attached the pdf file.
>> 
>> How could I solve this problem please?
> 
> when making examples, use fonts that are available ... (as I have no time to find a variant on my system that has a similar problem as the font used by you)


You can use Constantia for the example.

\definefontfeature[tnum][tnum=yes]

\definefontfamily[mainface][sans][Constantia]

\setupbodyfont[mainface]

\startbuffer
\bTABLE[alignmentcharacter=., aligncharacter=yes]
	\bTR
		\bTD 111.111 \eTD
	\eTR
	\bTR
		\bTD 444.444 \eTD
	\eTR
\eTABLE
\stopbuffer

\starttext

\getbuffer

\feature[+][tnum]

\getbuffer

\stoptext

Wolfgang


More information about the ntg-context mailing list