On Mon, 17 Aug 2009, Wolfgang Schuster wrote:
Am 16.08.2009 um 22:37 schrieb Wolfgang Werners-Lucchini:
But what is wrong with my code? Why does it not work?
Take a look at the log file when the font is read.
load afm | reading
/Users/wolf/context/tex/texmf/fonts/afm/public/wasy/wasy10.afm
load afm | unifying
/Users/wolf/context/tex/texmf/fonts/afm/public/wasy/wasy10.afm
afm glyph | assigning private slot U+F0000 for unknown glyph name AC
afm glyph | assigning private slot U+F0001 for unknown glyph name kreuz
...
afm glyph | assigning private slot U+F0016 for unknown glyph name saturn
...
ConTeXt tries to load the 'saturn' symbol as char89 but LuaTeX stores it at
positon F0016.
\starttext
{\definedfont[file:wasy10]\char"F0016}
\stoptext
@Hans/Taco: Is this expected for symbol fonts and how should take care of
this.
Maybe we can use the same trick that is used in math fonts (force tfm
font)
\usesymbols[was]
\setupsymbolset [wasy astronomy]
\definefontsynonym [WaldiSymbol] [wasy10.tfm]
\definefontsynonym [WaldiSymbolBold] [wasyb10.tfm]
\def\Sat{\symbol[saturn]}
\starttext
\Sat
\stoptext
So, symb-was can be changed accordingly.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________