[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multiple staff sizes
From: |
Mats Bengtsson |
Subject: |
Re: multiple staff sizes |
Date: |
Wed, 05 Sep 2001 23:55:00 +0200 |
> Hmm, the FAQ answer was outdated and so was input/test/staff-size.ly
> I've attached an updated version of this example file that almost
> works. Everything is in the correct size except for the time
> signature. Han-Wen or Jan, can you explain why (I've tried setting
> relative-font-size using \outputproperty but it doesn't help).
To answer my own question, I found that the following patch
solves the problem. I cannot understand why it would be necessary
to set the relative font size explicitly to zero. The only case
it's not zero is when the user explicitly requested it to be non-zero,
right?
Also included is a patch corresponding to the updated example file.
/Mats
diff -u scm/font.scm~ scm/font.scm
--- scm/font.scm~ Wed May 9 14:13:19 2001
+++ scm/font.scm Wed Sep 5 23:37:33 2001
@@ -204,11 +204,11 @@
(volta . ((font-family . number) (font-relative-size . -2)))
(tuplet . ((font-family . roman) (font-shape . italic)
(font-relative-size . -1)))
- (timesig . ((font-family . number) (font-relative-size . 0)))
- (timesig-symbol . ((font-family . music) (font-relative-size . 0)))
+ (timesig . ((font-family . number)))
+ (timesig-symbol . ((font-family . music)))
- (mmrest . ((font-family . number) (font-relative-size . 1)))
- (mmrest-symbol . ((font-family . music) (font-relative-size . 0)))
+ (mmrest . ((font-family . number)))
+ (mmrest-symbol . ((font-family . music)))
(mark . ((font-family . number) (font-relative-size . 1)))
(script . ((font-family . roman) (font-relative-size . -1)))
diff -u input/test/staff-size.ly~ input/test/staff-size.ly
--- input/test/staff-size.ly~ Thu Apr 5 00:02:42 2001
+++ input/test/staff-size.ly Wed Sep 5 23:50:29 2001
@@ -1,16 +1,16 @@
\version "1.3.146"
\score {
\notes \relative c' < \context Voice {
- \property Staff.staffSpace = #10
+ \context Staff \outputproperty #(make-type-checker 'staff-symbol-interface)
+ #'staff-space = #(/ 16 20)
\property Staff.fontSize = #-1
- \property Voice.fontSize = #-1
-
- \property Voice . dynamicDirection = \up \stemDown
+ \property Score.skipBars = ##t
+ \dynamicUp \stemDown
%\key gis \major
c8 d [e f g a] b c \ff
}
-\context Staff = VB { \property Voice . dynamicDirection = \down c,,4 \ff c c
c }
+\context Staff = VB { \dynamicDown c,,4 \ff c c c}
>
\paper { linewidth = -1. }