]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4591 / 1: Fix font-name overriding `Times New Roman'
authorMasamichi Hosoda <trueroad@trueroad.jp>
Mon, 7 Sep 2015 11:04:50 +0000 (20:04 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Thu, 17 Sep 2015 14:28:14 +0000 (23:28 +0900)
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.

input/regression/font-name.ly
input/regression/metronome-mark-formatter.ly

index d0e9a472c51c0e08f0a31c64015a38395773d383..4d74b6f3c22266ce50fd4e2349f158076b13b45a 100644 (file)
@@ -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"
index 480429f30ef89f4743229581feaed3a691163ab0..a288c91ced20fd8d3a77f69a72fd14bd0824acab 100644 (file)
@@ -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
 }