http://bugs.winehq.org/show_bug.cgi?id=33137
Bug #: 33137 Summary: Can display characters with WM_SETFONT but not with DrawText - same font Arial Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: forums@robertinventor.com Classification: Unclassified
I used CreateFontIndirect to create the font, with "Arial Unicode MS" as the font name.
Using GetTextFace(..) I find that the font actually created is "Arial".
In one place I set it as the font for a text control using WM_SETFONT
In another place I draw the text directly to a window using DrawTextW(..)
I'm using characters such as:
☀ ☁ ☂ ☃ ☄ ★ ✾ ✰ ✲ ✳ ❉ ✿ ❂ ✺ ❀
They get shown fine in the text control.
But when drawn directly to the window with DrawTextW you just see boxes.
To make sure it isn't some error in my code, I made sure to use EXACTLY THE SAME FONT HANDLE in both cases. Same thing happens as before.
Under Windows both show the same way..
So, just want to know - why can't DrawTextW find the font glyphs used by WM_SETFONT?
Seems like a bug of some sort, so that's why reported it here as a bug.
OTHER OBSERVATIONS
I had a similar result when it was able to find Arial Unicode MS - in that case again showed them all fine with WM_SETFONT, but when I used DrawTextW, only the ★ of ★ ✾ ✰ ✲ was shown correctly.
If I install unifont, then it finds it as the best match for "Arial Unicode MS", and then shows the characters in both cases correctly (but is no good for my purposes, too pixellated).
THIS IS A VERY MINOR FEATURE
It is a minor feature of my app so not a priority bug to fix, just for completeness. I am about to submit my app to the Wine database and this is one of the remaining unfixed differences when testing for compatibility of the app with Windows.
http://bugs.winehq.org/show_bug.cgi?id=33137
Robert Walker forums@robertinventor.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Can display characters with |Can display unicode |WM_SETFONT but not with |characters like ☀ ☁ ☂ ☃ ☄ |DrawText - same font Arial |with WM_SETFONT but not | |with DrawText - Same font | |handle used for both
http://bugs.winehq.org/show_bug.cgi?id=33137
--- Comment #1 from Robert Walker forums@robertinventor.com 2013-03-06 11:24:50 CST --- The code is
For DrawTextW, I use SelectObject(hdc,hFont); then draw the text with DrawTextW
For WM_SETFONT, I use SendMessage(hwnd,WM_SETFONT,(WPARAM)hFont,TRUE);
https://bugs.winehq.org/show_bug.cgi?id=33137
--- Comment #2 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over 700 days. Is this still an issue in current (1.7.36 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=33137
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Hi, Robert.
Could you attach your test program that demonstrates this?
https://bugs.winehq.org/show_bug.cgi?id=33137
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=33137
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #4 from joaopa jeremielapuree@yahoo.fr --- No news from the reporter since 8 years. No download available. Can an administrator this bug as ABANDONED?