]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/stencil.scm
*** empty log message ***
[lilypond.git] / scm / stencil.scm
index 8f60fa0bec615d9a0267895699bfe1cf37f1410e..153661cc0be769ea315e0a1c409ad4a88b8dc1ca 100644 (file)
@@ -5,7 +5,7 @@
 ;;;; (c)  2003--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 
 (define-public (stack-stencils axis dir padding stils)
-  "Stack stencils STILS in direction AXIS,DIR, using PADDING."
+  "Stack stencils STILS in direction AXIS, DIR, using PADDING."
   (if (null? stils)
       '()
       (if (pair? stils)
@@ -80,4 +80,9 @@ encloses the contents.
   (let* ((b  (ly:text-dimension font-metric text)))
     (ly:make-stencil
      `(text ,font-metric ,text) (car b) (cdr b))))
-
+     
+(define-public (fontify-text-white scale font-metric text)
+  "Set TEXT with scale factor s"
+  (let* ((b  (ly:text-dimension font-metric text))
+         (c  `(white-text ,(* 2 scale) ,text))) ;urg -- workaround for using ps font
+    (ly:make-stencil c  (car b) (cdr b))))  ;urg -- extent is not from ps font, but we hope it's close