http://bugs.winehq.org/show_bug.cgi?id=26960
Summary: mshtml renders gibberish text with "courier" font Product: Wine Version: 1.2.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mshtml AssignedTo: wine-bugs@winehq.org ReportedBy: kevin.m.smyth@gmail.com
Loading this document: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> </HEAD>
<BODY STYLE="font-family: courier; font-size: 10px; margin: 0px"> </BODY> </HTML>
then calling: CComPtr<IHTMLDocument2> pHtmlDoc; pDispatch.QueryInterface(&pHtmlDoc); CComPtr<IHTMLElement> pElement; pHtmlDoc->get_body( &pElement ); CComBSTR where(L"BeforeEnd"); CComBSTR text(line); pElement->insertAdjacentHTML(where, text);
results in gibberish. Changing "courier" to "monospace" works as expected.
Ubuntu package: 1.2.2-0ubuntu2~lucid1