lilypond-auto
[Top][All Lists]
Advanced

[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: Mon, 13 Aug 2018 19:27:42 -0000

Regarding David's (DAK's) issue about issue 677 ff., I've done some testing heavily playing around with a combination of a score and a score as markup within the score, using various combinations of #(layout-set-staff-size ...) and \magnifyStaff within the outer and/or inner score.

Based on the original issue 677 example, I've added some text and I painted the \markup \score blue to be able to easily distinguish it from the outer score. Additionally, I checked the value of output_scale used when loading the fonts via
All_font_metrics::find_pango_font

Result 1: (with a standard global staff size of 20pt): output_scale = 1.757299..., no matter what I scale and squeeze.

Please find attached an example PNG file showing a few of the results.
Result 2: When finally mixing two different layout staff sizes and \magnifyStaff, the staff spacing gets out of pace, but the fonts at least (and this issue is about fonts only) are consistent and stable.
The PNG shows \fontsize fonts (being scaled along with the score), but \abs-fontsize works as expected, too, and even stay the same (absolute) size, as they 're supposed to do.
As long as output_scale doesn't change, there's no need to re-scale the fonts in the buffer.

From my point of view, we're safe font-wise.

All the best,
Torsten

Attachments:


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

Status: Started
Created: Sat May 19, 2018 06:22 PM UTC by Torsten Hämmerle
Last Updated: Mon Aug 13, 2018 12:30 PM UTC
Owner: Torsten Hämmerle
Attachments:

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: http://lilypond.1069038.n5.nabble.com/Maintaining-font-size-regardless-of-staff-size-td213007.html)

#(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 sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. 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, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Testlilyissues-auto mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

reply via email to

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