Available font sizes in Lilypond preview

View: New views
8 Messages — Rating Filter:   Alert me  

Available font sizes in Lilypond preview

by John Craick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When doing Lilypond print preview, is it possible to use an arbitary font size of, say, 14 or 15 points ?

The available pre-sets for font size include 11, 13 & 16 points. 13 pt gives me a score that is 2 & 3/4 pages and a little hard to read, while 16 pt gives me about 5 1/2 pages which is kind to the eyes but wastes a lot of paper.

Are the font sizes set in an .rc file somewhere and can the user change them ?

I'm using RG 1.7.2 on Kubuntu 9.04 with an old SB "Platinum" soundcard & right now I also have no sound output. There used to be, back in 8.10 so I guess I'll fix that eventually. It's not the main problem for the moment.

But fitting my score tidily into 4 pages would be nice.

Regards,

JohnC

Re: Available font sizes in Lilypond preview

by cannam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 25, 2009 at 4:57 PM, John Craick<JohnCraick@...> wrote:
>
> When doing Lilypond print preview, is it possible to use an arbitary font
> size of, say, 14 or 15 points ?

I'm afraid the font sizes appear to be hard-coded in the Rosegarden
source code (src/document/io/LilyPondExporter.cpp).  Without editing
and re-building Rosegarden itself, the only option would appear to be
to edit the Lilypond file after export.

I don't know why it is that the sizes are hardcoded -- whether it
reflects anything about Lilypond, or is purely a limitation of
Rosegarden.


Chris

------------------------------------------------------------------------------
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: Available font sizes in Lilypond preview

by John Craick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It seems that the Lilypond file one obtains from export is NOT the same as the one Rosegarden uses to generate the Lilypond print preview. I tried upping the font size in an exported Llp file. It made the size (# of pages) come out as I wanted but the printout seemed to be missing the document title & various other score annotations that were in the original. I'll check all that further.

In my exported Lilypond files there is a statement "#(set-global-staff-size 13)" and changing the magic number in there seems to scale the printout. Numbers such as 12, 14,15 seem to work ok so perhaps they could be additional options offered by Rosegarden.


cannam wrote:
I'm afraid the font sizes appear to be hard-coded in the Rosegarden
source code (src/document/io/LilyPondExporter.cpp).  Without editing
and re-building Rosegarden itself, the only option would appear to be
to edit the Lilypond file after export.

I don't know why it is that the sizes are hardcoded -- whether it
reflects anything about Lilypond, or is purely a limitation of
Rosegarden.


Chris

------------------------------------------------------------------------------
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: Available font sizes in Lilypond preview

by D. Michael McIntyre-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 25 June 2009, John Craick wrote:

> It seems that the Lilypond file one obtains from export is NOT the same as
> the one Rosegarden uses to generate the Lilypond print preview.

You must have done something to cause the difference.  Here's a file I
previewed and then exported, using identical settings in the export dialog
both times, and without changing anything in between:

e3cd49b5f3ec7209f9151329fa43da1b6fc1503c  609_lilypondview/rosegardenv5zlPa.ly
e3cd49b5f3ec7209f9151329fa43da1b6fc1503c  exported.ly

Exactly the same.

> In my exported Lilypond files there is a statement "#(set-global-staff-size
> 13)" and changing the magic number in there seems to scale the printout.
> Numbers such as 12, 14,15 seem to work ok so perhaps they could be
> additional options offered by Rosegarden.

I think I'm the one who implemented this originally.  If not, I had a hand in
it along the way, because I have a clear memory of offering all the point
sizes that were valid in LilyPond at that time.

Perhaps this limitation is no longer true.  LilyPond has changed a great deal
since those days.  I'll investigate this as soon as I get a chance.
--
D. Michael McIntyre

------------------------------------------------------------------------------
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: Available font sizes in Lilypond preview

by John Craick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, yes. my mistake, I AM now seeing exported Lilypond files that match the Lilypond print pre-views.

I am also getting roughly the outputs I expect when I edit the Lilypond file to change the global-staff-size. As far as I can tell, Lilypond does operate with values other than the Rosegarden pre-set list. The "Basic Options" - Font size setting in the Lilypond export options dialog appears to set the "global-staff-size" parameter in the resulting Lilypond file, rather than a font size as such. Presumably Lilypond itself then chooses text & note font sizes compatible with that staff size. So we can use the staff size as a convenient global scaling parameter.

Having pre-sets, as at present, and also allowing arbitrary staff size entry might be a useful change for Rosegarden in the future. Adjusting score size to fit exactly into a set of pages is a tricky business.

- JohnC

D. Michael McIntyre-3 wrote:
On Thursday 25 June 2009, John Craick wrote:

> It seems that the Lilypond file one obtains from export is NOT the same as
> the one Rosegarden uses to generate the Lilypond print preview.

You must have done something to cause the difference.  Here's a file I
previewed and then exported, using identical settings in the export dialog
both times, and without changing anything in between:

e3cd49b5f3ec7209f9151329fa43da1b6fc1503c  609_lilypondview/rosegardenv5zlPa.ly
e3cd49b5f3ec7209f9151329fa43da1b6fc1503c  exported.ly

Exactly the same.

> In my exported Lilypond files there is a statement "#(set-global-staff-size
> 13)" and changing the magic number in there seems to scale the printout.
> Numbers such as 12, 14,15 seem to work ok so perhaps they could be
> additional options offered by Rosegarden.

I think I'm the one who implemented this originally.  If not, I had a hand in
it along the way, because I have a clear memory of offering all the point
sizes that were valid in LilyPond at that time.

Perhaps this limitation is no longer true.  LilyPond has changed a great deal
since those days.  I'll investigate this as soon as I get a chance.
--
D. Michael McIntyre

------------------------------------------------------------------------------
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: Available font sizes in Lilypond preview

by D. Michael McIntyre-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 28 June 2009, John Craick wrote:

> Adjusting score size to fit exactly into a set of pages is a tricky
> business.

That is is.  There have been plenty of times when somewhere between this and
that would have been what I needed to solve some of my own problems.  I just
never thought to question whether it was possible to use in-between sizes.

I haven't found anything truly satisfying or definitive on this question in
the LilyPond docs, but it looks like this list we have is the "recommended"
sizes.  It might have always been the case that these were merely
recommended, and not the only choices available.

I'm in the middle of a big sub project that has my working source tree rather
broken at the moment, but as soon as I get back to a point where I can work
on this, I'll do something with the LilyPond options dialog to add in more
choices.  I haven't looked through the actual code to see how troublesome it
would be to implement it this way, but my first thought is to offer arbitrary
sizes up through, say, 40 points and show the recommended sizes in bold or
something.  There's some way to do it.  I'll work something out.  It will be
most convenient and sensible to use if it's all in one list.
--
D. Michael McIntyre

------------------------------------------------------------------------------
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: Available font sizes in Lilypond preview

by D. Michael McIntyre-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 28 June 2009, John Craick wrote:

> entry might be a useful change for Rosegarden in the future. Adjusting
> score size to fit exactly into a set of pages is a tricky business.

OK, I'm pushing right to the wire on time, and this probably needs more
testing and refinement, but the basic idea is in Thorn now.  Sizes 6 through
30 with the recommended sizes flagged as "(recommended)"

Actually the build just came up, and it's still rather out of whack, but I can
fix it when I'm home from work.  I'll commit it anyway.

--
D. Michael McIntyre

------------------------------------------------------------------------------
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Re: Available font sizes in Lilypond preview

by D. Michael McIntyre-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 28 June 2009, D. Michael McIntyre wrote:

> Actually the build just came up, and it's still rather out of whack, but I
> can fix it when I'm home from work.  I'll commit it anyway.

OK, it's unkinked now, and tested at random arbitrary sizes to yield this
result:

file: 13.ly uses: #(set-global-staff-size 13)
file: 23.ly uses: #(set-global-staff-size 23)
file: 8.ly uses: #(set-global-staff-size 8)

A screenshot of the new combo is attached.  I don't know if
the "(recommended)" idea is the best thing to do here.  I was originally
going to have these show up in bold, but you (apparently) can't do rich texts
in QComboBoxes.  The tags just get passed straight through.

I offered 6 through 30, but these are arbitrary limits, and if you think they
need to be expanded, I can arrange it.

(The other bit about hairpins above and exporting differently and whatnot, I'm
afraid that is all a rather bigger problem that doesn't lend itself to quick
solutions.)
--
D. Michael McIntyre


------------------------------------------------------------------------------

_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@... - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

font-combo.jpg (14K) Download Attachment