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.
--- /dev/null
+\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"
+}
(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))