]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #1020.
authorPatrick McCarty <pnorcks@gmail.com>
Fri, 26 Feb 2010 01:17:35 +0000 (17:17 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 26 Feb 2010 08:47:28 +0000 (00:47 -0800)
The default size of the Century Schoolbook fonts is 11pt (as seen in
font.scm).

But when a 'font-name is specified, the 'text-font-size property is
used, which changes the default size to 12pt.

This commit standardizes the default size to 11pt, and also fixes the
behavior of \abs-fontsize when setting font size to 12pt.

Note: there are still some rounding errors related to converting between
LilyPond's scale and Pango's scale, but they are relatively small.

input/regression/font-name-font-size.ly [new file with mode: 0644]
scm/paper.scm

diff --git a/input/regression/font-name-font-size.ly b/input/regression/font-name-font-size.ly
new file mode 100644 (file)
index 0000000..a0ba3a2
--- /dev/null
@@ -0,0 +1,15 @@
+\version "2.13.14"
+
+\header {
+  texidoc = "
+Setting the @code{font-name} property does not change the font
+size.  The two strings below should be concatenated and have the
+same font size.
+"
+}
+
+\markup \concat {
+  "string"
+  \override #'(font-name . "New Century Schoolbook")
+  "string"
+}
index 117bbb0fffb0bcbfd2048b4e9584a54f088b23bd..3a8644ecdc5cbaec30ed9394196d33dd9143f9cf 100644 (file)
@@ -69,7 +69,7 @@
        (setm! (lambda (sym val)
                (module-define! module sym val))))
 
-    (setm! 'text-font-size (* 12 factor))
+    (setm! 'text-font-size (* 11 factor))
 
     (setm! 'output-scale ss)
     (setm! 'fonts (make-century-schoolbook-tree factor))