Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WideChar display issue on Windows 7

I am developing a little application. The captions (text displayed on the Labels) with WideChars (Greek letters) are correct under Vista and Windows7 in almost every case, but in some cases (on some computers) I have only empty squares. The language is the same, the operating system too. What can cause it? Please help me how can I resolve this problem.

like image 624
Andras Kelemen Avatar asked Nov 22 '11 22:11

Andras Kelemen


2 Answers

The problem is that the fonts on the computers that are failing do not have glyphs for the characters you are displaying. Typically this happens on XP machines. Vista comes with much more complete fonts.

You may need to distribute fonts, or encourage users to install language packs, to ensure fidelity.

like image 158
David Heffernan Avatar answered Nov 10 '22 09:11

David Heffernan


If you are testing a Greek translation of your application, you should test it on a Greek installation of Windows. An English installation of Windows does not necessarily come with fonts that support your range of Unicode characters.

Windows 7 Ultimate and Enterprise provide additional language packs as optional updates via Windows Update. Your users with those versions of Windows 7 may have installed the optional language packs, which may include versions of the fonts that support the Greek letters you are using. Other versions of Windows 7 do not include additional language packs. Windows is really only guaranteed to full support the language that was installed, or languages that share a common character set. You can't rely on users having a specific language pack.

It's most likely not a real problem if you are translating your program based on the user's locale settings. Those running your program in Greek will have Windows installations that support Greek.

like image 37
Marcus Adams Avatar answered Nov 10 '22 09:11

Marcus Adams