U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » About Chinese font display solutions
About Chinese font display solutions [message #57516] Thu, 16 September 2021 08:56 Go to previous message
lzjaiwl is currently offline  lzjaiwl
Messages: 2
Registered: September 2021
Junior Member
Chinese fonts cannot be drawn correctly under Win32 system. Please modify the following files:
FontWin32.cpp
function:
static int CALLBACK Win32_AddFace(const LOGFONT *logfont, const TEXTMETRIC *, dword type, LPARAM param)

int q = sList->Find(name);
FaceInfo& f = q < 0 ? sList->Add(logfont->lfFaceName) : (*sList)[q];
f.name = FromSystemCharset(logfont->lfFaceName);

f.name = FromSystemCharset(logfont->lfFaceName);
------------------------Change to:--------------------------
f.name = logfont->lfFaceName;
 
Read Message
Read Message
Previous Topic: [BUG] Translatable menu text of accelerator keys contains invalid characters.
Goto Forum:
  


Current Time: Sun May 03 11:13:01 GMT+2 2026

Total time taken to generate the page: 0.00565 seconds