(set! stencil (ly:stencil-add outer inner))
stencil))
-
-(define-public (fontify-text font-metric text)
- "Set TEXT with font FONT-METRIC, returning a stencil."
- (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 SCALE"
- (let* ((b (ly:text-dimension font-metric text))
- ;;urg -- workaround for using ps font
- (c `(white-text ,(* 2 scale) ,text)))
- ;;urg -- extent is not from ps font, but we hope it's close
- (ly:make-stencil c (car b) (cdr b))))
-
(define-public (stencil-with-color stencil color)
(ly:make-stencil
(list 'color color (ly:stencil-expr stencil))