sjoerd siebinga wrote:
Hi� Hans,
On 19 Jan 2006, at 00:26, Hans Hagen wrote:
did you try:
\defineunicodefont [MySwitch] [MyOwnFont] % [command=\insertunicodeglyph]
\definefontsynonym [MyOwnFontRegular] [Sans]
\definefontsynonym [MyOwnFontItalic] [SansItalic]
\MySwitch \uchar... \it ...
Yes, but still no bold or italics. Maybe there is something wrong with my definitions.
[code] \defineunicodefont [MySwitch] [mylinostar] % [command=\insertunicodeglyph]
\loadmapfile[palatinolinostar_01xx-starling-linostar] \definefontsynonym [mylinostarRegular01] [palatinolinostar_01xx-PalatinoLinoStar] \definefontsynonym [mylinostarBold01] [palatinolinostar_01xx-PalatinoLinoStarBold] \definefontsynonym [mylinostarItalic01] [palatinolinostar_01xx-PalatinoLinoStarItalic]
\starttext {\MySwitch \uchar{1}{1}} \\� {\MySwitch \it \uchar{1}{1}} \\ {\MySwitch \bf \uchar{1}{1}}� \\
\stoptext
[/code]
I have installed the font without errors with TeXfont.�
can you test with: \unexpanded\def\unicodeglyph#1#2% watch the double mapping {\begingroup \getvalue{@@\currentucharmapping\strippedcsname\uchar}{#1}{#2}% \bodyfontsize\unicodescale\bodyfontsize \font\unicodefont=\truefontname{\unicodestyle\unicodeone} at \currentfontscale\bodyfontsize \unicodestrut \unicodefont\unicodecharcommand{\char\unicodetwo\relax}% \endgroup} i'll change the handlers in not applying a strut by default Hans