pandap / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Some fonts can not display properly when playing Thai #899

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

I'm using the last version of SlimDX in C# language (Direct3D9).
I tried to play following Thai with some fonts, for example 'Tahoma'. 
ยินดีต้อนรับ ยินดีต้อนรับ 
ยินดีต้อนรับ ยินดีต้อนรับ 
ยินดีต้อนรับ ยินดีต้อนรับ 
ยินดีต้อนรับ ยินดีต้อนรับ 
ยินดีต้อนรับ ยินดีต้อนรับ 
ยินดีต้อนรับ ยินดีต้อนรับ 
ยินดีต้อนรับ 

In DirectX, it plays perfectly, whereas in SlimDX, the upper part of the 
characters disappears.(the lower text in the sreenshot)
The comparison screenShot is attached.  

 The code I use in SlimDX is as following:

...
font = new SlimDX.Direct3D9.Font(d3dDevice, clippingRect.Height, 0, 
data.Weight, 1, data.Italics, CharacterSet.Default, Precision.Default
                , FontQuality.Antialiased, PitchAndFamily.Default, data.Family); 
...
 font.DrawString(sprite, curText[index], clippingRect.X, clippingRect.Y, textColor);

Thanks for your help, if need any further detail, please contact.

Original issue reported on code.google.com by SongU...@gmail.com on 20 Sep 2013 at 6:13

Attachments: