On Wed, Oct 1, 2008 at 10:00 PM, Hans Hagen wrote: > 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 > > Is something missing to make it work ? See attachements. Tried with WXP & LNX. -- Best, Alan * texexec --lua foo * ConTeXt ver: 2008.10.01 19:13 MKIV fmt: 2008.10.3 int: english/english * Ubuntu 8.04 Hardy Heron (Desktop)