summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasamichi Hosoda <trueroad@trueroad.jp>2015-09-07 20:04:50 +0900
committerMasamichi Hosoda <trueroad@trueroad.jp>2015-09-17 23:28:14 +0900
commit64d2c3f619587207c1dcd22f573b9ff4ff34d04f (patch)
tree0a69f1ef9da96a05d449a04fbfc3d675ba97d240
parente82c90ef55c039111ae5e6247ef6acbc4ef72226 (diff)
Issue 4591 / 1: Fix font-name overriding `Times New Roman'
A comma is required for font name "Times New Roman"'s explicit termination. If there is no comma, Pango interpret "Times New Roman" as "Times New" family with "Roman" style.
-rw-r--r--input/regression/font-name.ly7
-rw-r--r--input/regression/metronome-mark-formatter.ly7
2 files changed, 12 insertions, 2 deletions
diff --git a/input/regression/font-name.ly b/input/regression/font-name.ly
index d0e9a472c5..4d74b6f3c2 100644
--- a/input/regression/font-name.ly
+++ b/input/regression/font-name.ly
@@ -14,7 +14,12 @@ without size specification."
{
\override Score.PaperColumn.keep-inside-line = ##f
- \override Staff.TimeSignature.font-name = #"Times New Roman"
+
+ % A comma is required
+ % for font name "Times New Roman"'s explicit termination.
+ % If there is no comma, Pango interpret "Times New Roman" as
+ % "Times New" family with "Roman" style.
+ \override Staff.TimeSignature.font-name = #"Times New Roman,"
\time 3/4
\set Score.skipBars = ##t
\override Staff.MultiMeasureRestText.font-name = #"LuxiMono"
diff --git a/input/regression/metronome-mark-formatter.ly b/input/regression/metronome-mark-formatter.ly
index 480429f30e..a288c91ced 100644
--- a/input/regression/metronome-mark-formatter.ly
+++ b/input/regression/metronome-mark-formatter.ly
@@ -16,7 +16,12 @@ mus =
\relative c'' {
\tempo "Allegro" 8=120-140
a8 b c d a b c d
- \override Score.MetronomeMark.font-name = "Times New Roman"
+
+ % A comma is required
+ % for font name "Times New Roman"'s explicit termination.
+ % If there is no comma, Pango interpret "Times New Roman" as
+ % "Times New" family with "Roman" style.
+ \override Score.MetronomeMark.font-name = "Times New Roman,"
\tempo "Allegro" 8=140
a b c d a b c d
}