From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44503 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ansi codes Date: Wed, 01 Oct 2008 22:00:25 +0200 Message-ID: <48E3D6D9.5000609@wxs.nl> References: <326847810809300323m4b315c19x59b28282f7c2acc9@mail.gmail.com> <20080930133756.f4aca410.taco@elvenkind.com> <326847810809300701y4b3bf96bvecda807b2ce9d128@mail.gmail.com> <48E234C2.60703@elvenkind.com> <326847810810010557t13335d26v4e98f1143c9c8339@mail.gmail.com> <6faad9f00810011130w64ad8f2dkd00ae890b0909ecb@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 1222891334 1148 80.91.229.12 (1 Oct 2008 20:02:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 20:02:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 01 22:03:11 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 1Kl7uZ-0001MB-O8 for gctc-ntg-context-518@m.gmane.org; Wed, 01 Oct 2008 22:03:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15A9F1FEDF; Wed, 1 Oct 2008 22:01:56 +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 11372-03; Wed, 1 Oct 2008 22:01:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D00331FE6F; Wed, 1 Oct 2008 22:01:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CEC191FE6F for ; Wed, 1 Oct 2008 22:01:02 +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 11301-01-8 for ; Wed, 1 Oct 2008 22:00:28 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 4DD881FB6B for ; Wed, 1 Oct 2008 22:00:28 +0200 (CEST) Original-Received: from [192.168.2.100] (unverified [10.100.1.11]) by controller-1 (SurgeMail 3.9e) with ESMTP id 2681-1840426 for ; Wed, 01 Oct 2008 22:00:28 +0200 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <6faad9f00810011130w64ad8f2dkd00ae890b0909ecb@mail.gmail.com> X-Originating-IP: 10.100.1.11 X-Authenticated-User: hagen@controller-1 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:44503 Archived-At: Mojca Miklavec wrote: > On Wed, Oct 1, 2008 at 2:57 PM, Alan Stone wrote: >> Is there a (preferably free) Linux or Windows font tool out there which >> allows to print a font's characters and corresponding character codes ? > > Geeks do it with LuaTeX :) > > I'm not sure if this still works since I have no luatex here, but in > theory you can play with something like this: > > % do whatever you want with it > \def\mychar#1#2{#1: #2\crlf} > > \starttext > \ctxlua{ > fontname = 'texgyrepagella-regular.otf' > tfmdata = fonts.tfm.read_and_define("file:" .. fontname, 655360) > > w = tfmdata.characters > for i=0,100000 do > if w[i] then > tex.sprint("\\strut\\mychar{" .. i, "}{\\type{", w[i].name, "}}") > end > end > } > \stoptext lesser geeks loom in s-fnt-10.tex -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________