Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font size not taken into account when spacing lyrics #1261

Closed
rpspringuel opened this issue Dec 6, 2016 · 2 comments
Closed

Font size not taken into account when spacing lyrics #1261

rpspringuel opened this issue Dec 6, 2016 · 2 comments

Comments

@rpspringuel
Copy link
Contributor

In the following document the larger than normal lyrics text causes it to overlap with the low notes of the staff.

% !TEX program = LuaLaTeX+se
\documentclass[12pt]{article}

\usepackage{fullpage}
\usepackage{libertine}
\usepackage{gregoriotex}

\begin{document}

\Large
\gabcsnippet{(c3) Hel(g)lo(g) nó(dc)}

\end{document}

This happens because the distance between the bottom line and the text baseline (spacelinestext) is a fixed value (currently 0.60617cm) which is only appropriate for font sizes of roughly 10 to 12 pt. I propose changing the value to em units. The current value is about 1.72em if the base font is 10pt and 1.44em if the base font is 12pt. I thus think 1.5em is a good starting point. I would also change this distance so that by default it is fixed with respect to the staff size.

Comments?

@eroux
Copy link
Contributor

eroux commented Dec 7, 2016

Well, I don't have a strong opinion on that, I don't find the current behavior particularly buggy... but if you change it, the em unit doesn't make any sense, the ex unit does

@cantatedomino
Copy link

cantatedomino commented Apr 10, 2021

I do very much appreciate the hard work of all the Gregorio developers, and the updates in Version 6, but this change did break the spacing in my engravings; Setting the Salve Regina (solemn tone) shifted the text in all the lines of chant to spacing required by the lowest note in the entire piece, rather than the lowest note for that particular line.

I have a work-around that adds \grechangedim{spacelinestext}{0.60617 cm}{scalable} to my LaTeX preprocessor file.

Update: This is too obvious of a visual bug for this to have slipped past you all; I discovered that compiling a second time provides the expected behavior. My apologies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants