Dear all,
When we are working on the Chinese support on WINE using Lotus Notes r5, we found that the fonts display for the interface is very ugly (attached the screepshot). I would like to change to have different font when detected English or Chinese. Could somebody point me where I could start with?
Also, for a text document, the gdi text and font are used to store them, I would like to ask where can I find the structure to store and the code to manipulate it (e.g. send for display/print (pExtTextOut? but where called pExtTextOut))?
Thanks. Leanne
On Mon, Jun 24, 2002 at 11:05:04AM +0800, leanne wrote:
Dear all,
When we are working on the Chinese support on WINE using Lotus Notes r5, we found that the fonts display for the interface is very ugly (attached the screepshot). I would like to change to have different font when detected English or Chinese. Could somebody point me where I could start with?
Unfortunately your attachment didn't make it. First you want to make sure that you're using client side rendered fonts, for this you'll need to have a version of the freetype library installed with version
= 2.0.5 you'll also require some TrueType fonts in
c:\windows\Fonts. Make sure you're using the current cvs tip - there has been a big improvement for non ANSI_CHARSET fonts committed in the last few days.
If you still have problems could you send me the output of --debugmsg +font,+xrender ?
Also, for a text document, the gdi text and font are used to store them, I would like to ask where can I find the structure to store and the code to manipulate it (e.g. send for display/print (pExtTextOut? but where called pExtTextOut))?
Well for fonts try objects/fonts.c and dlls/gdi/freetype.c for X11 text output try graphics/x11drv/text.c and dlls/x11drv/xrender.c
Huw.
Huw D M Davies wrote:
On Mon, Jun 24, 2002 at 11:05:04AM +0800, leanne wrote:
Dear all,
When we are working on the Chinese support on WINE using Lotus Notes r5, we found that the fonts display for the interface is very ugly (attached the screepshot). I would like to change to have different font when detected English or Chinese. Could somebody point me where I could start with?
I am sorry I missed them.
1. First, I use 2 Chinese fonts, Kai and Ming (bkai00mp.ttf and bsmi00lp.ttf) as well as fonts.dir luximb.ttf luxirbi.ttf luxirr.ttf luxisri.ttf fonts.scale luximri.ttf luxirb.ttf luxisbi.ttf luxisr.ttf luximbi.ttf luximr.ttf luxirri.ttf luxisb.ttf
I start Lotus Notes and all Chinese can be displayed (because it is using Chinese font by default, Ming) English characters shown, however, are very ugly.
<screenshot3.png> <screenshot4.png>
2. When I copy the fonts from Windows and include the path, the interface and other fonts look good (using courier, helvetica and arial). I would like to ask it's because Lotus Notes default uses those fonts?
<screenshot3.png> <screenshot4.png>
I want to display both Chinese and English, does WINE support loading fontset? or if I need to manually detect Chinese range and use Chinese font? and could somebody point me some hints? Thanks very much.
Unfortunately your attachment didn't make it. First you want to make sure that you're using client side rendered fonts, for this you'll need to have a version of the freetype library installed with version
= 2.0.5 you'll also require some TrueType fonts in
c:\windows\Fonts. Make sure you're using the current cvs tip - there has been a big improvement for non ANSI_CHARSET fonts committed in the last few days.
If you still have problems could you send me the output of --debugmsg +font,+xrender ?
Also, for a text document, the gdi text and font are used to store them, I would like to ask where can I find the structure to store and the code to manipulate it (e.g. send for display/print (pExtTextOut? but where called pExtTextOut))?
Well for fonts try objects/fonts.c and dlls/gdi/freetype.c for X11 text output try graphics/x11drv/text.c and dlls/x11drv/xrender.c
Huw.
I have another question, when I try to print a document using wordpad.exe, it doesn't use the font display.
Arial changes to Helvetica. Cooper changes to AvantGarde-Book Kochi Gothic changes to AvantGarde-Book
<screenshot5.png>
Why it could not set the correct font? no such fonts for printing? where the code it changes to Helvetica/AvantGarde-Book? Thanks.
On Tue, Jun 25, 2002 at 12:40:15PM +0800, leanne wrote:
I have another question, when I try to print a document using wordpad.exe, it doesn't use the font display.
Arial changes to Helvetica. Cooper changes to AvantGarde-Book Kochi Gothic changes to AvantGarde-Book
<screenshot5.png>
Why it could not set the correct font? no such fonts for printing? where the code it changes to Helvetica/AvantGarde-Book?
The code to download TT fonts to a printer was committed to the cvs yesterday, so please give this a go.
Huw.
On Tue, Jun 25, 2002 at 10:12:13AM +0800, leanne wrote:
Huw D M Davies wrote:
On Mon, Jun 24, 2002 at 11:05:04AM +0800, leanne wrote:
Dear all,
When we are working on the Chinese support on WINE using Lotus Notes r5, we found that the fonts display for the interface is very ugly (attached the screepshot). I would like to change to have different font when detected English or Chinese. Could somebody point me where I could start with?
I am sorry I missed them.
- First, I use 2 Chinese fonts, Kai and Ming (bkai00mp.ttf and
bsmi00lp.ttf) as well as fonts.dir luximb.ttf luxirbi.ttf luxirr.ttf luxisri.ttf fonts.scale luximri.ttf luxirb.ttf luxisbi.ttf luxisr.ttf luximbi.ttf luximr.ttf luxirri.ttf luxisb.ttf
I start Lotus Notes and all Chinese can be displayed (because it is
using Chinese font by default, Ming) English characters shown, however, are very ugly.
<screenshot3.png> <screenshot4.png>
- When I copy the fonts from Windows and include the path, the
interface and other fonts look good (using courier, helvetica and arial). I would like to ask it's because Lotus Notes default uses those fonts?
<screenshot3.png> <screenshot4.png> I want to display both Chinese and English, does WINE support
loading fontset? or if I need to manually detect Chinese range and use Chinese font? and could somebody point me some hints? Thanks very much.
It's still not clear to me whether you're using XServer rendered fonts or client side (Wine) rendered fonts. Could you send me the --debugmsg +font,+xrender log ?
Huw.