lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emmentaler Glyph numbers


From: Urs Liska
Subject: Re: Emmentaler Glyph numbers
Date: Wed, 15 Aug 2012 02:48:37 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

[Prev in Thread] Current Thread [Next in Thread]