From: Patrick McCarty Date: Fri, 26 Feb 2010 01:17:35 +0000 (-0800) Subject: Fix #1020. X-Git-Tag: release/2.13.14-1~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fc76fda44a887f47c10db1dcb76756951167bfc1;p=lilypond.git Fix #1020. 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. --- diff --git a/input/regression/font-name-font-size.ly b/input/regression/font-name-font-size.ly new file mode 100644 index 0000000000..a0ba3a2e20 --- /dev/null +++ b/input/regression/font-name-font-size.ly @@ -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" +} diff --git a/scm/paper.scm b/scm/paper.scm index 117bbb0fff..3a8644ecdc 100644 --- a/scm/paper.scm +++ b/scm/paper.scm @@ -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))