[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5324 \abs-fon

From: Auto mailings of changes to Lily Issues via Testlilyissues-auto
Subject: [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5324 \abs-fontsize and set-global-staff-size in books
Date: Thu, 23 Aug 2018 10:37:20 -0000

author  Torsten Hämmerle <address@hidden> 
    Mon, 11 Jun 2018 13:03:05 +0100 (14:03 +0200)
committer   James Lowe <address@hidden> 
    Thu, 23 Aug 2018 11:35:26 +0100 (11:35 +0100)
commit  8c96f95499189e630c7936bf4194f61e7d4d3456

Thank you Torsten.

[issues:#5324] \abs-fontsize and set-global-staff-size in books

Status: Fixed
Labels: Fixed_2_21_0
Created: Sat May 19, 2018 06:22 PM UTC by Torsten Hämmerle
Last Updated: Mon Aug 20, 2018 10:03 PM UTC
Owner: Torsten Hämmerle

Issue 5324: \abs-fontsize and set-global-staff-size in books

The font buffering hashtable will provide an outdated LilyPond
scale factor after changing global staff size between books. Mainly
\abs-fontsize concerned, because \fontsize will usually not match
a Pango font-size used in a differently scaled book and fresh fonts
will have to be loaded anyway.

The straight-forward solution is to simply apply #ly:restet-all-fonts
from within #set-global-staff-size.

When creating several \books of different staff-sizes set by #(set-global-staff-size ...), markup in absolute font sizes (\abs-fontsize) will mess up spacing (font-metrics) in the subsecquent books.

(reported by David Sumbler:

#(ly:set-option 'debug-skylines #t)

\header {
  title = \markup \concat {
        \abs-fontsize #21 "X let’s see how long X"
        \with-color #red \abs-fontsize #21 "XX"

#(set-global-staff-size 18)
 \book { { b'1^\markup \abs-fontsize #14 "Test" } }

#(set-global-staff-size 26)
 \book { { b'1^\markup \abs-fontsize #14 "Test" } }

#(set-global-staff-size 10)
 \book { { b'1^\markup \abs-fontsize #14 "Test" } }

Sent from because address@hidden is subscribed to

To unsubscribe from further messages, a project admin can change settings at Or, if this is a mailing list, you can unsubscribe from the mailing list.

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
Testlilyissues-auto mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]