From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44459 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: ansi codes Date: Tue, 30 Sep 2008 16:16:34 +0200 Message-ID: <48E234C2.60703@elvenkind.com> References: <326847810809300323m4b315c19x59b28282f7c2acc9@mail.gmail.com> <20080930133756.f4aca410.taco@elvenkind.com> <326847810809300701y4b3bf96bvecda807b2ce9d128@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222786355 21821 80.91.229.12 (30 Sep 2008 14:52:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 14:52:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 30 16:53:23 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KkgaT-00026o-2B for gctc-ntg-context-518@m.gmane.org; Tue, 30 Sep 2008 16:52:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8CC661FE88; Tue, 30 Sep 2008 16:51:23 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08870-01-8; Tue, 30 Sep 2008 16:50:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B851B1FBE8; Tue, 30 Sep 2008 16:50:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDFB61FBD5 for ; Tue, 30 Sep 2008 16:50:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05816-04-3 for ; Tue, 30 Sep 2008 16:49:24 +0200 (CEST) Original-Received: from plane.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by ronja.ntg.nl (Postfix) with ESMTP id E7C6F1FB6B for ; Tue, 30 Sep 2008 16:16:34 +0200 (CEST) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by plane.elvenkind.com (Postfix) with ESMTP id D71A08026A33 for ; Tue, 30 Sep 2008 16:16:34 +0200 (CEST) User-Agent: Thunderbird 2.0.0.12 (X11/20080305) In-Reply-To: <326847810809300701y4b3bf96bvecda807b2ce9d128@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:44459 Archived-At: Alan Stone wrote: > On Tue, Sep 30, 2008 at 1:37 PM, Taco Hoekwater > wrote: > > On Tue, 30 Sep 2008 12:23:56 +0200 > "Alan Stone" > 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________