On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater <taco@elvenkind.com> wrote:
On Tue, 30 Sep 2008 12:23:56 +0200
"Alan Stone" <software.list.1es9s@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.

- font: combinumerals ( http://www.fontsite.com/bonusfonts/cnfree_tt.zip )
- font encoding type: symbol
- supported unicode ranges: general punctuation

What's missing here ?

\starttypescript [sans] [combinumerals]
     \definefontsynonym [CombinumeralsRegular]    [name:combinumerals]                        [features=default]
     \definefontsynonym [CombinumeralsBold]            [name:combinumeralsbold]                [features=default]
\stoptypescript

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

\starttypescript [combinumerals]
     \definetypeface [combinumerals] [ss] [sans] [combinumerals] [default]
\stoptypescript

\usetypescript[combinumerals]

\starttext
%\showcharacters
%\page
\char 33
\blank
\char "21
\stoptext

--
Best,
Alan

Ubuntu 8.04 Hardy Heron (Desktop)
  * ConTeXt  ver: 2008.09.16 19:49 MKIV  fmt: 2008.9.20  int: english/english  (ConTeXt minimals installation)
  * texexec --lua foo