Thank you for this, which also worked for me.
As I wanted to have it the 'fontspec' way, I tried from there and came
up with
\newcommand*{\lilyGlyph}[2]{\fontspec[Scale=#1]{Emmentaler-11}
\XeTeXglyph\XeTeXglyphindex"#2" }
and then (for exmple)
\newcommand*{\flatflat}{\raisebox{0.2ex}{\lilyGlyph{1.5}{"accidentals.flatflat"}}}
Leaving out the scaling and offsetting it looks even more straightforward:
\newcommand*{\lilyGlyph}[1]{\fontspec{Emmentaler-11}
\XeTeXglyph\XeTeXglyphindex"#1" }
and then (for exmple)
\newcommand*{\flatflat}{\lilyGlyph{"accidentals.flatflat"}}
(That's just for the record. Might be somewhat OT, but I think the
intended audience for this may well be LilyPond users...)
Best
Urs
Am 14.08.2012 22:12, schrieb Werner LEMBERG:
Thanks for this info (although I'd prefer not having to have it :-( )
Can you tell me how I can access a glyph by name from XeLaTeX /
fontspec then?
Looking into XeTeX-reference.pdf, this works for me (assuming that you
have emmentaler-20.otf installed where XeTeX can find it):
The scripts.varsegno sign:
\font\1 = "Emmentaler-20"
\1
\XeTeXglyph \the\XeTeXglyphindex "scripts.varsegno"
\bye
BTW, this is XeTeX from TeXLive 2012.
Werner
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user