Bug 19237 - unicode: with font-family:webdings, characters are represented as pictorials
Summary: unicode: with font-family:webdings, characters are represented as pictorials
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 20:30 PDT by Philippe Wittenbergh
Modified: 2008-05-26 00:26 PDT (History)
2 users (show)

See Also:


Attachments
test case (543 bytes, text/html)
2008-05-23 20:30 PDT, Philippe Wittenbergh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Wittenbergh 2008-05-23 20:30:13 PDT
The 2 lines in the testcase should be identical, and showing the string 'oy!'.
However with div style="font-family: Webdings, sans-serif;", webkit renders the string as some pictorials: U+F06F, U+F078, U+F021.
Expected: the characters with code points: U+006F, U+0079, U+0021, as set in the source code.

(the fact that on a Mac keyboard the '!' (U+0021) can be used to input the spider pictorial (U+F021) is unrelated)

wrong: WebKit and Safari, Opera 9.2, 9.5b, only on Mac
correct: Gecko 1.9 (Firefox 3rc), Opera 9.x on Windows and Linux

For reference: further discussion in the comments at
http://meyerweb.com/eric/thoughts/2008/05/22/characteristic-confusion/
Comment 1 Philippe Wittenbergh 2008-05-23 20:30:45 PDT
Created attachment 21326 [details]
test case
Comment 2 mitz 2008-05-24 01:37:53 PDT
The Macintosh/Roman and Unicode 'cmap' tables in Webdings (Version 5.00x from Mac OS X Leopard) contain these entries:
		<map charValue="0x006F" glyphRefID="82"/>
		<map charValue="0x0079" glyphRefID="92"/>
		<map charValue="0x0021" glyphRefID="4"/>

and only the Microsoft/Symbol 'cmap' table has these mappings:
		<map charValue="0xF06F" glyphRefID="82"/>
		<map charValue="0xF079" glyphRefID="92"/>
		<map charValue="0xF021" glyphRefID="4"/>
Comment 3 Alexey Proskuryakov 2008-05-26 00:26:34 PDT
If I understand the above data correctly, it means that Webdings font does have glyphs for these Roman characters, so WebKit is correct to display them - even though these glyphs do not look like Roman characters! Also, we are rendering this test the same way as Internet Explorer on Windows, which is good for compatibility.

However, this only happens on Mac - on Windows, Safari draws "oy!". Regardless of which behavior we decide upon as correct, there is an issue to investigate, so I'm marking the bug as confirmed.