Skip to main content

Surprising interaction of LFE and TUP

default values for both LFE and TUP

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae metus id nunc varius egestas vestibulum vel massa. Sed blandit aliquet erat non pharetra. Nullam ut bibendum lacus, nec blandit lorem. Sed et finibus tellus. Phasellus cursus vestibulum dui in ultrices. Sed condimentum dolor et nibh cursus aliquet. Phasellus ut lacus bibendum mauris ultricies cursus ac nec nunc. Sed pharetra lobortis nunc, non sagittis neque. 仕方しかたがない。 Donec pellentesque mi ac dictum euismod. In tempus sem est, sit amet elementum enim porta quis. Cras dui nunc, ultrices vel efficitur sit amet, pulvinar eu magna.

The second link contains ruby, which forces its line to be taller to fit the <rt>.

The height of the first link’s line is not affected by the link’s underline.

This is the expected default behavior.

TUP: from-font;

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae metus id nunc varius egestas vestibulum vel massa. Sed blandit aliquet erat non pharetra. Nullam ut bibendum lacus, nec blandit lorem. Sed et finibus tellus. Phasellus cursus vestibulum dui in ultrices. Sed condimentum dolor et nibh cursus aliquet. Phasellus ut lacus bibendum mauris ultricies cursus ac nec nunc. Sed pharetra lobortis nunc, non sagittis neque. 仕方しかたがない。 Donec pellentesque mi ac dictum euismod. In tempus sem est, sit amet elementum enim porta quis. Cras dui nunc, ultrices vel efficitur sit amet, pulvinar eu magna.

In this example we just set TUP and haven’t messed with LFE yet. The first link’s underline appears to be a little lower than in the first example, but I don’t think it’s affected the line’s height at all.

LFE: ideographic; TUP: from-font;

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vitae metus id nunc varius egestas vestibulum vel massa. Sed blandit aliquet erat non pharetra. Nullam ut bibendum lacus, nec blandit lorem. Sed et finibus tellus. Phasellus cursus vestibulum dui in ultrices. Sed condimentum dolor et nibh cursus aliquet. Phasellus ut lacus bibendum mauris ultricies cursus ac nec nunc. Sed pharetra lobortis nunc, non sagittis neque. 仕方しかたがない。 Donec pellentesque mi ac dictum euismod. In tempus sem est, sit amet elementum enim porta quis. Cras dui nunc, ultrices vel efficitur sit amet, pulvinar eu magna.

Here’s where things get weird. I’ve set both LFE and TUP. The position of the underlines doesn’t appear to be coming from the font anymore, but instead from some data structure affected by LFE. And we see both links affecting the height of the lines they’re in, which is surprising in at least the first case if not both. Also, there’s no longer a reasonable amount of space between the ruby base and ruby text.

the styles applied to the above <figure>s