Re: gdi32: Implement automatic font substitution

2008-07-03 Thread Huang, Zhangrong
Hi, 2008/7/3 Lei Zhang [EMAIL PROTECTED]: On Wed, Jul 2, 2008 at 5:13 PM, Huang, Zhangrong [EMAIL PROTECTED] wrote: Are these the only fonts that work? What about other fonts like arphic-uming? http://packages.debian.org/etch/ttf-arphic-uming If you don't have those fonts, try the following 2

Re: gdi32: Implement automatic font substitution

2008-07-03 Thread Lei Zhang
On Wed, Jul 2, 2008 at 5:13 PM, Huang, Zhangrong [EMAIL PROTECTED] wrote: Have you tried to set FontLink? It works for me, there are no places have font problem. (without automatic font substitution patch) see: http://bugs.winehq.org/attachment.cgi?id=14546 [Software\\Microsoft\\Windows

Re: gdi32: Implement automatic font substitution

2008-07-03 Thread Lei Zhang
On Wed, Jul 2, 2008 at 8:33 PM, Liu Qishuai [EMAIL PROTECTED] wrote: Could you take a screenshot of this? Oh, sorry, I messed up. I tried again on a different system and it worked. With your patch, I didn't need to add the registry keys Zhangrong suggested.

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Liu Qishuai
2008/7/2 Dan Kegel [EMAIL PROTECTED]: Can you write a conformance test that verifies this behavior? Sorry, I don't know how to write a test yet. Maybe I will write a test later. Also, can you identify a bug in bugzilla this will fix? Such as bug 4065, 10864, 14151.

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Huang, Zhangrong
Hi, * Append all fonts on child_list so that if a character is not available in the font, * other fonts will be automatically used. This is how Windows does to get a CJK character * when a latin font is specified. That's not correct, actually Windows does this by using FontLink

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Liu Qishuai
No. 1. In Windows XP, I deleted the FontLink register key and rebooted, and the Chinese characters are still displaying correctly. 2. I moved simsun.ttc (The default font in Simplified Chinese) to another directory and rebooted. Windows XP automatically uses simhei.ttf (another Chinese font) to

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Huang, Zhangrong
Hi, 2008/7/2 Liu Qishuai [EMAIL PROTECTED]: No. 1. In Windows XP, I deleted the FontLink register key and rebooted, and the Chinese characters are still displaying correctly. I guess gdi32.dll has hard-coded the default FontLink registry, of course no prove. 2. I moved simsun.ttc (The

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Liu Qishuai
Hi, I rewrote a patch that doesn't break FontLink. http://www.winehq.org/pipermail/wine-patches/2008-July/057033.html 2008/7/2 Huang, Zhangrong [EMAIL PROTECTED]: Hi, 2008/7/2 Liu Qishuai [EMAIL PROTECTED]: No. 1. In Windows XP, I deleted the FontLink register key and rebooted, and the

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Lei Zhang
On Wed, Jul 2, 2008 at 9:34 AM, Liu Qishuai [EMAIL PROTECTED] wrote: Hi, I rewrote a patch that doesn't break FontLink. http://www.winehq.org/pipermail/wine-patches/2008-July/057033.html I tried this with Picasa. It fixed the font rendered as boxes, but now other parts of the interface is

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Huang, Zhangrong
Have you tried to set FontLink? It works for me, there are no places have font problem. (without automatic font substitution patch) see: http://bugs.winehq.org/attachment.cgi?id=14546 [Software\\Microsoft\\Windows NT\\CurrentVersion\\FontLink\\SystemLink] 1208451304 Microsoft Sans

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Lei Zhang
On Wed, Jul 2, 2008 at 5:13 PM, Huang, Zhangrong [EMAIL PROTECTED] wrote: Ensure your system have these fonts: simsun.ttc, gulim.ttc, msgothic.ttc and mingliu.ttc, or change the values with proper font name. Are these the only fonts that work? What about other fonts like arphic-uming?

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Liu Qishuai
Yes, FontLink also works for me, but not everyone has those fonts installed. Wine should find a suitable font from fontconfig, in case the fonts in FontLink do not exist. 2008/7/3 Huang, Zhangrong [EMAIL PROTECTED]: Have you tried to set FontLink? It works for me, there are no places have font

Re: gdi32: Implement automatic font substitution

2008-07-02 Thread Liu Qishuai
Could you take a screenshot of this? 2008/7/3 Lei Zhang [EMAIL PROTECTED]: I tried this with Picasa. It fixed the font rendered as boxes, but now other parts of the interface is missing text.

re: gdi32: Implement automatic font substitution

2008-07-01 Thread Dan Kegel
Liu Qishuai wrote: This patch appends all fonts on child_list so that if a character is not available in the font, other fonts will be automatically used. This is how Windows does to get a CJK character when a latin font is specified. A lot of CJK-related bugs will be fixed after applying