Thank you, Willi, I wasn't aware of this nice font module! (btw, running it on ArialUnicode with 2 columns and 10pt produces 500 PDF pages and a peak memory usage of 1.2 GB!).
I like the idea of using glyph names rather than unicode numbers. For my actual purpose your suggestion works perfectly, with \fontchar{emptyset}. Beside this there are many glyphs with only "math names" (the rightmost column in the fnt-10 output). I couldn't make \fontchar work with these. For example the fore-mentioned char "2300 works with \fontchar{uni2300} but not with \fontchar{varnothing}. Is there a way to set these chars by their math name? Thomas On Jan 20, 2011, at 16:37, Willi Egger wrote: > Hi Thomas, > > I had to do some work with regard to this issue recently. > > What was mentioned on this list, is, that \fontchar is a command which will > stay. > > \setupbodyfont[Myfont,rm,12pt] > \definesymbol[Q.alt] [\fontchar{Q.alt}] > \def\Qa{\symbol[Q.alt]} > > The easiest way to get a stable environment is to use the char-names from the > font. You can extract a table with all char-names with > > \usemodule[fnt-10] > \setupbodyfont[Myfont,rm,12pt] > \starttext > \ShowCompleteFont{Myfont.otf}{10pt}{1} % fontname, size,columns > % \ShowAllGlyphs {Myfont}{48pt}{4} % fontname, size,columns > \stoptext > > Kind regards > > Willi > On 20 Jan 2011, at 08:51, Thomas Floeren wrote: > >> Hi, >> >> I did a rather huge update step from my working context 2010.09.29 to the >> actual beta. I noted that \getscaledglyph doesn’t work anymore. >> >> I use it a lot for symbol insertions like this: >> >> \definefontsynonym [ArialU] [name:ArialUnicodeMS] >> \definesymbol [Diameter] [\getscaledglyph{1.5}{ArialU}{\char"2300}] >> \def\Diam{\symbol[Diameter]} >> >> \starttext >> hello \Diam\ goodbye >> \stoptext >> >> >> ( \getglyph seems to work as usual: \definesymbol [Diameter] >> [\tfb\getglyph{ArialU}{\char"2300}] ) >> >> Should I better change my definitions or is it just a bug? >> >> >> >> Thank you >> & Greetings >> Thomas >> >> >> MTXrun | current version: 2011.01.18 19:34 >> This is LuaTeX, Version beta-0.65.0-2010121316 >> >> ___________________________________________________________________________________ >> 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 : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ___________________________________________________________________________________ > > ___________________________________________________________________________________ > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________