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:
-
[issue677-font-testing.png](https://sourceforge.net/p/testlilyissues/issues/_discuss/thread/da65d5d7/9a42/attachment/issue677-font-testing.png)
(30.5 kB; image/png)
---
** [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:**
-
[abs-fontsize-original.png](https://sourceforge.net/p/testlilyissues/issues/5324/attachment/abs-fontsize-original.png)
(35.6 kB; image/png)
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](http://))
~~~~
#(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 [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto