[NTG-context] ansi codes

Taco Hoekwater taco at elvenkind.com
Tue Sep 30 16:16:34 CEST 2008



Alan Stone wrote:
> On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater <taco at elvenkind.com 
> <mailto:taco at elvenkind.com>> wrote:
> 
>     On Tue, 30 Sep 2008 12:23:56 +0200
>     "Alan Stone" <software.list.1es9s at gmail.com
>     <mailto:software.list.1es9s at gmail.com>> wrote:
> 
>      > How do you typeset font characters by their ansi code number, ex.
>     Alt+33
>      > (21h) ?
> 
>     \char "21 % hex
>     \char 33  % decimal
> 
> 
> Thanks Taco.
> 
> It didn't work as expected. It outputs exclamation points.

OK, fetched the font.

> \starttypescript [sans] [combinumerals]
>      \setups [font:fallback:sans]
>      \definefontsynonym [sans]                    [CombinumeralsRegular]
>      \definefontsynonym [sansBold]            [CombinumeralsBold]
> \stoptypescript

Two changes are needed here

[Sans]       instead of   [sans]
[SansBold]   instead of   [sansBold]

> \starttext
> %\showcharacters
> %\page

Have to add a font switching command here:

   \switchtobodyfont[combinumerals,ss]

Best wishes,
Taco


More information about the ntg-context mailing list