Bug 138618

Summary: Some Hangul consonants (U+114C, U+112B, etc) are not combined with other Hangul combining jamos
Product: WebKit Reporter: Jungshik Shin <jshin>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED MOVED    
Severity: Normal CC: behdad, bfulgham, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: OS X 10.9   
Attachments:
Description Flags
Left: correct (Chrome 41), Right: Incorrect (Safari 7.1) none

Description Jungshik Shin 2014-11-11 11:18:44 PST
Created attachment 241364 [details]
Left: correct (Chrome 41), Right: Incorrect (Safari 7.1)

OS: Mac OS 10.9
Safari: Version 7.1 (9537.85.10.17.1)

Reproduction step:

1. Install 'NotoSansCJK' (either SuperOTC or Regular OTC) available at http://www.google.com/get/noto/cjk.html
2. Start Safari
3. Go to the following URL
   data:text/html;charset=utf-8,<span%20style="font-family:%20Noto%20Sans%20CJK%20KR;">ᅌᅥᆫᄫᅳᆯ&#x1147;&#x116e;</span>

Expected (see the attachment) 

You see three syllables the first which are made up of three Hangul combining Jamos and the last of which is made of two Hangul Jamos 

Actual (see the screenshot )
Three Jamos enumerated linearly for the first two syllables and two Jamos enumerated linearly for the last syllable. 

Additional information:

Jamos in the step 3 are:

U+114C U+1165 U+11AB
U+112B U+1173 +U11AF
U+1147 U+116E

A more comprehensive example is found at http://ko.wikisource.org/wiki/훈민정음언해 where most combinations are rendered correctly, but some syllables starting with consonants such as U+114C, U+112B and U+1147 are incorrectly shaped. (there are a couple of other issues, but I'll file them separately)

Chrome 38.x (that also uses CoreText) has the same issue, but Chrome 40.x (that switched to use harfbuzz) does not have this issue any more.
Comment 1 Radar WebKit Bug Importer 2014-11-12 00:43:03 PST
<rdar://problem/18952844>
Comment 2 Myles C. Maxfield 2014-11-12 10:11:03 PST
This occurs in TextEdit as well on OS X, so the problem is in CoreText.
Comment 3 Brent Fulgham 2022-02-10 19:44:06 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

This should now be fixed in shipping software.