From 64d2c3f619587207c1dcd22f573b9ff4ff34d04f Mon Sep 17 00:00:00 2001 From: Masamichi Hosoda Date: Mon, 7 Sep 2015 20:04:50 +0900 Subject: [PATCH] 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. --- input/regression/font-name.ly | 7 ++++++- input/regression/metronome-mark-formatter.ly | 7 ++++++- 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 } -- 2.39.2