lilypond-user
[Top][All Lists]
Advanced

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

Re: fonts in markup


From: Mats Bengtsson
Subject: Re: fonts in markup
Date: Wed, 13 Apr 2005 17:02:56 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319

See the example called font-name.ly in the "Regression Tests"
document (which in general is a tremendous source of information,
together with the Tips and Tricks document).

   /Mats

Jonatan Liljedahl wrote:
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 )=-


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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