Closed Bug 1544488 Opened 6 years ago Closed 5 years ago

Combining Diaeresis in webfont cause extra spacing

Categories

(Core :: Graphics: Text, defect, P3)

67 Branch
Unspecified
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1309934
Webcompat Priority revisit

People

(Reporter: denschub, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [webcompat] [gfx-noted])

Attachments

(1 file)

Attached image Screenshot 2019-04-15 at 19.12.25.png (deleted) —

We have received a webcompat issue about this site using ü and other umlauts, which are rendered with additional spacing in Firefox, see the attached screenshot.

The site is not using an UTF-8 ü (0xC3BC), but rather a lowercase u and combining diaeresis (0x75 0xCC88). On macOS, this causes additional spacing after the umlaut, and on windows, the diaeresis are placed next to the u, not on top of it.

This may be related to, or a duplicate of, bug 940944, but in that issue, the font was broken in all browsers. The webfont in this case seems to render completely fine in Chrome and Safari, so maybe that's something to dig into.

Flags: webcompat?

Actually, if you look more closely in Safari, the u-umlaut combination (where they've used <U+0075, U+0308> rather than the precomposed U+00FC) gets rendered in a different font from the surrounding text -- at least that's what I see.

The issue is that the webfont they're using doesn't support the combining dieresis U+0308. Browsers handle that in various ways. Chrome applies Unicode NFC normalization, which changes <U+0075, U+0308> to U+00FC, which is supported by the font. Safari looks for a fallback font for the entire <U+0075, U+0308> cluster, so it renders kinda OK, but the font doesn't match the rest of the word. Firefox does fallback for the individual U+0308 codepoint, but then the positioning of the umlaut may be bad because it's split from its base character for text-shaping purposes.

This is a reason why the W3C recommendation is for authors/sites to use NFC normalization; it's much less likely to run into rendering issues like this (among other things).

Bug 543200 would help here, though it would also be much better if the site fixed its content.

Depends on: 543200
OS: Unspecified → macOS
Priority: -- → P3
Whiteboard: [webcompat] → [webcompat] [gfx-noted]

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

Webcompat Priority: ? → revisit
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: