]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/font.scm
Merge branch 'master' of /home/lilycvs/git/lily/
[lilypond.git] / scm / font.scm
index 8774042ca90b87d8ef458f2e7ebbb828cec44fcb..eefc1c26ee9627316e43e11e09101d9e4ceebbe2 100644 (file)
@@ -2,7 +2,7 @@
 ;;;;
 ;;;;  source file of the GNU LilyPond music typesetter
 ;;;; 
-;;;; (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+;;;; (c) 2004--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
 ;; TODO:
 ;;
     "Century Schoolbook L" 
     "Sans" "Mono" factor))
 
-(define-public (magstep x)
-  (exp (* (/ x 6) (log 2))))
+(define-public (magstep s)
+  (exp (* (/ s 6) (log 2))))
+
+(define-public (magnification->font-size m)
+  (* 6 (/ (log m) (log 2))))