lilypond-user
[Top][All Lists]
Advanced

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

fonts in markup


From: Jonatan Liljedahl
Subject: fonts in markup
Date: Wed, 13 Apr 2005 16:07:19 -0300

Is it possible to choose different fonts in markup textscript?

This is what I came up with, but I guess it only works with the
postscript backend:

\version "2.5.18"

#(def-markup-command (symbol layout props fn str) (string? string?)
  (interpret-markup layout props
     (markup #:postscript (string-append
       "gsave /" fn " findfont 3.5 output-scale div
       scalefont setfont 1 string dup 0 16#" str
       " put show grestore")
     )
   )
)

star = ^\markup \symbol #"ZapfDingbats" #"4B"
club = ^\markup \symbol #"Symbol" #"A7"
spade = ^\markup \symbol #"Symbol" #"AA"

{
  c\star c\club c\spade
}

/Jonatan    -=( http://kymatica.com )=-




reply via email to

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