Bug 151651 - [Win] Some fonts aren't rendered due to a failure of Uniscribe
Summary: [Win] Some fonts aren't rendered due to a failure of Uniscribe
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Other
Hardware: Unspecified Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-29 22:55 PST by Jinyoung Hur
Modified: 2015-12-01 19:54 PST (History)
1 user (show)

See Also:


Attachments
simple web page showing the problem (27.32 KB, application/zip)
2015-11-29 22:55 PST, Jinyoung Hur
no flags Details
visual studio project showing the uniscribe bug (66.00 KB, application/x-zip-compressed)
2015-12-01 19:31 PST, Jinyoung Hur
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jinyoung Hur 2015-11-29 22:55:04 PST
Created attachment 266236 [details]
simple web page showing the problem

On Windows, some web fonts(e.g. Droid Serif, Titillium Web) aren't rendered with 'text-rendering: optimizelegibility' CSS value. [1][2]
After some debugging, I found that ScriptShape(), which is in UniscribeController::shape(), returns E_FAIL[1] with those problematic fonts. (I couldn't find any reasons for the failure)
It seems that when it fails, there is no fallback mechanism, so no texts are displayed on the screen.

It would be helpful if somebody look into this.


[1] http://vimawesome.com/
[2] http://www.dotcss.io/
Comment 1 Jinyoung Hur 2015-11-29 22:56:59 PST
E_FAIL[1] -> E_FAIL
Comment 2 Myles C. Maxfield 2015-12-01 17:03:33 PST
The best course of action would be to create a reduced test case and submit a bug report to Microsoft for Uniscribe.
Comment 3 Jinyoung Hur 2015-12-01 17:12:46 PST
I agree. I'm finding a way how to file a bug for Windows.
Comment 4 Jinyoung Hur 2015-12-01 19:31:32 PST
Created attachment 266425 [details]
visual studio project showing the uniscribe bug

A simple Windows program that displays "AB" using Uniscribe.
You can change the font through the menu, "View>Font".

Make sure install "Droid Serif.ttf", "Titillium Web.ttf" so that they can be displayed on the font-pickup dialog.
Comment 5 Jinyoung Hur 2015-12-01 19:54:49 PST
I filed a bug to MS.
https://connect.microsoft.com/VisualStudio/Feedback/Details/2081379