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

CSS linespacing method produces inconsistent leading #882

Open
alerque opened this issue Jun 6, 2020 · 0 comments
Open

CSS linespacing method produces inconsistent leading #882

alerque opened this issue Jun 6, 2020 · 0 comments
Labels
bug Software bug issue
Milestone

Comments

@alerque
Copy link
Member

alerque commented Jun 6, 2020

I don't understand why yet, but the CSS linespacing mechanism has a monkey in the machinery that sometimes throws in a leading that's way too small.

image

Here is the MWE code:

\begin[papersize=a5]{document}
\nofolios
\script[src=packages/linespacing]
\set[parameter=linespacing.method, value=css]
\set[parameter=linespacing.css.line-height, value=14.5pt]
\font[family=Brill,size=12.8pt]
(Col. i) [The Athenians ?] considering [that to be not ?] only [impiety ?] but also the conspiracy of tyranny, (10) since they remembered the cruelty of the Peisistratids, pursued the perpetrators by offering great rewards for information. (15) Their principal suspect was Alkibiades, because they judged from his arrogance and high esteem that he was a man of great ambition. (22) A certain informant made no mention of the Herms but said that Alkibiades had performed the mysteries in Pulytion’s house. (28) So Alkibiades went to the Assembly, defended himself, and requested...
\end{document}

Switching to a different font, different content, or completely different metrics can easily throw this off. It wasn't obvious at first, but this does happen with other fonts, but not always the same way.

Using the same content as above but swapping out the font:

\set[parameter=linespacing.css.line-height, value=26.5pt]
\font[family=Crimson Pro,size=12.4pt]

image

Note with Crimson Pro it's pretty consistently the last line that is a problem (but not 100%) whereas with Brill it was pretty regularly the second to last line.

@alerque alerque added the bug Software bug issue label Jun 6, 2020
@alerque alerque changed the title CSS lineheight method produces inconsistent leading CSS linespacing method produces inconsistent leading Jun 6, 2020
@alerque alerque added this to the v0.x.y milestone Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software bug issue
Projects
None yet
Development

No branches or pull requests

1 participant