gdi32/freetype patch to solve CJK text display

Xiangrong Fang xrfang at gmail.com
Thu Dec 4 00:39:50 CST 2008


Hi All,

I have submited a new ticket about this problem, as suggested by Dan:

http://bugs.winehq.org/show_bug.cgi?id=16325

This is a modified patch for an old bug #4065

The discussion in #4065 talked about "font substitution", although it
is marked as closed the problem still exists.  Font substitution, if
can solve this problem, will still be very nasty. It requires users to
modify wine registry which is difficult to many users, and there are
a LOT of out-dated information about how to set font substitution to
solve this problem, which actually does not work!

Attached is two flavor of the patch for the SAME purpose (so choose
from one of them not using both), in GIT diff format.

patch #1 utilize GetACP() which is preferred for CJK users;
patch #2 use an environment variable to maintain compatibility with
current code (if the env is not set, it doesnot affect current code at
all).

The third file, winefont.pas, is a small test program to show the
problem, it print out PASS if Chinese text is correctly rendered, FAIL
if not.
Please note that the result in Windows is not correct, it will show
FAIL under Chinese Windows, which should be PASS. Please see comments
in the program for details.

Thanks!

Xiangrong
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 01_freetype.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081204/41b66c18/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 02_freetype.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081204/41b66c18/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winefont.pas
Type: text/x-pascal
Size: 979 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081204/41b66c18/attachment.pas 


More information about the wine-patches mailing list