(define font-list (ly:paper-fonts paper))
(define (define-font command fontname scaling)
(string-append
- "/" command " { /" fontname " findfont "
- (ly:number->string scaling) " output-scale div scalefont } bind def\n"))
+ "/" command " { /" fontname " " (ly:number->string scaling) " output-scale div selectfont } bind def\n"))
+; (string-append
+; "/" command " { /" fontname " findfont "
+; (ly:number->string scaling) " output-scale div scalefont } bind def\n"))
(define (standard-tex-font? x)
(or (equal? (substring x 0 2) "ms")
(let* ((scale (ly:output-def-lookup paper 'output-scale))
(box (map
(lambda (x)
- (inexact->exact
- (round (/ (* x scale) (ly:bp 1))))) mmbox)))
-
+ (if (or (nan? x) (inf? x))
+ 0
+ (inexact->exact
+ (round (/ (* x scale) (ly:bp 1)))))) mmbox)))
+
(list (car box)
(cadr box)
(max (1+ (car box)) (caddr box))