On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater <[EMAIL PROTECTED]> wrote:

> On Tue, 30 Sep 2008 12:23:56 +0200
> "Alan Stone" <[EMAIL PROTECTED]> 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
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to