A soft or auto hyphen within a possible ligature (eg 'f­f') paints a split ligature glyph
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: thomas.bsd, Unassigned)
References
(Blocks 2 open bugs, )
Details
Attachments
(6 files)
Updated•16 years ago
|
Comment 6•16 years ago
|
||
Comment 8•16 years ago
|
||
Comment 10•16 years ago
|
||
Comment 11•14 years ago
|
||
Comment 12•13 years ago
|
||
Comment 13•13 years ago
|
||
Comment 14•13 years ago
|
||
Comment 15•13 years ago
|
||
Comment 17•11 years ago
|
||
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
Comment 22•7 years ago
|
||
Comment 25•6 years ago
|
||
I thought I had found a new bug (https://twitter.com/LordPachelbel/status/1113475005600366592) but now I've learned it was first reported 10 years ago. As Liam said above, this issue is going to happen more often now that web fonts with ligatures are widely used.
Comment 26•6 years ago
|
||
Here's the "af" ligature at a different font size where it isn't being split and hyphenated.
The web font is called Premiera Book.
Comment 27•6 years ago
|
||
The URL I saw this on is http://clagnut.com/blog/2395. In this case the source code doesn't have ­ in the word:
<html lang="en">
...
<p>I presented some golden rules for typography on the web, and in the Q&A afterwards
I was asked about the current state of automatic hyphenation on the web. This was an apt
question considering that German is well known for its long words – noun compounds feature
commonly (for example <dfn lang="de">Verbesserungsvorschlag</dfn> meaning <i>suggestion for
improvement</i>) – so hyphenation is extensively used in most written media.</p>
Which means the split ligature is happening because of auto-hyphen styles:
font-size: 1.3125rem;
line-height: 1.428571429em;
font-family: "Premiera", "Cambria", "Roboto Slab", "Georgia", "Times New Roman", serif, ".PhoneFallback", "Arial Unicode MS";
font-feature-settings: normal;
font-variant-ligatures: common-ligatures;
font-kerning: normal;
font-variant-numeric: oldstyle-nums proportional-nums;
-webkit-hyphens: auto;
-webkit-hyphenate-limit-before: 4;
-webkit-hyphenate-limit-after: 3;
-webkit-hyphenate-limit-chars: 7 4 3;
-webkit-hyphenate-limit-lines: 2;
-webkit-hyphenate-limit-zone: 8%;
-webkit-hyphenate-limit-last: always;
-moz-hyphens: auto;
-moz-hyphenate-limit-chars: 7 4 3;
-moz-hyphenate-limit-lines: 2;
-moz-hyphenate-limit-zone: 8%;
-moz-hyphenate-limit-last: always;
-ms-hyphens: auto;
-ms-hyphenate-limit-chars: 7 4 3;
-ms-hyphenate-limit-lines: 2;
-ms-hyphenate-limit-zone: 8%;
-ms-hyphenate-limit-last: always;
hyphens: auto;
hyphenate-limit-chars: 7 4 3;
hyphenate-limit-lines: 2;
hyphenate-limit-zone: 8%;
hyphenate-limit-last: always;
Updated•5 years ago
|
Comment 29•5 years ago
|
||
I just ran into this in Firefox v69 on Mac (at https://www.gwern.net/Culture-is-not-about-Esthetics#the-experimental-results). "often" was split into "of- <linebreak> ten", but there's a blob above the t. It looks like the ft ligature was rendered and then split in two. Chrome handles it correctly.
Comment 30•5 years ago
|
||
Same here in this article: https://i.imgur.com/4FvM3Bw.png
Comment 31•4 years ago
|
||
It not only affects soft hyphens but also normal hyphenation in regular text. I've seen this a lot on websites everywhere. I'm wondering why this could even happen. A ligature must only be printed if both characters appear directly next to each other, not even with custom letter spacing, and certainly not across lines. Are there any plans to fix this?
Comment 33•2 years ago
|
||
Updated•2 years ago
|
Comment 35•2 years ago
|
||
The severity field for this bug is relatively low, S4. However, the bug has 7 duplicates and 14 votes.
:jfkthame, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 36•2 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Comment 37•2 years ago
|
||
I was just about to report a similar issue and saw this bug. I see the same problem even without any hyphens. Is this a different bug, or does the title just need updating here?
Comment 38•2 years ago
|
||
Yes, the same issue can sometimes occur without any hyphens, if a line break is allowed within a character sequence that forms a ligature (e.g. as a result of overflow-wrap:anywhere).
So on macOS, for example,
data:text/html,<div style="font:40px times; overflow-wrap:anywhere; width: 1px">office
will show two halves of the "fi" ligature on separate lines, which looks a bit odd; the line-break should cause the ligature to be undone.
Hyphen breaks are the most common example where this occurs, but the bare line-wrap example is the same issue.
Comment 39•1 year ago
|
||
Wanted to report a similar bug, found that it is already here. A reduced case that I did encounter in practice: https://codepen.io/kizu/pen/XWGXYyp (probably only on macOS due to the font I used for this specific example).
Given Safari and Chrome handle this properly, it would be nice to fix this for interoperability.
Comment 41•4 months ago
|
||
(In reply to Chris Cowan from comment #29)
I just ran into this in Firefox v69 on Mac (at https://www.gwern.net/Culture-is-not-about-Esthetics#the-experimental-results)
I can confirm this bug is still being experienced on Gwern.net by my readers; most recently, a reader reported it happening with the Source Serif Pro on "Scaling Hypothesis" with Firefox for Android in our dark mode: https://gwern.net/doc/cs/css/2024-08-29-anonymous-firefox-android-bug479829fontligaturesplitting-gwernnetscreenshot.jpg ("suf-fice").
Description
•