Closed Bug 2060241 Opened 3 months ago Closed 2 months ago

Ligatures get sliced by line breaking

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 153
defect

Tracking

()

RESOLVED DUPLICATE of bug 479829

People

(Reporter: psychpsyo, Unassigned)

Details

Attachments

(1 file)

Attached image oof, ouch, my ligature! —

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0

Steps to reproduce:

I made a line-break happen in the middle of a ligature. I did this by making Firefox hyphenate the word "office", in a font with an ffi ligature:

<!DOCTYPE html>
<html lang="en">
<style>
body {
hyphens: auto;
}
</style>
This is the word "office"
</html>

Actual results:

The ffi ligature got sliced in half, and the tip of the second f was pulled onto the second line, disconnected from the rest of the f.

Expected results:

Line-breaking in a middle of a ligature should either be avoided entirely, or it should disband the ligature. (potentially splitting it into smaller ligatures, like ffi -> f, fi, where both ffi and fi are ligatures)

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, but is not confident enough to move the bug to that component.

Component: Untriaged → General
Component: General → Layout: Text and Fonts
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 2 months ago
Duplicate of bug: 479829
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: