Sign in to follow this  

ID3DXFont with Thai Text

Recommended Posts

When I try to display Thai text with ID3DXFont , I've got 'Access Violation' error. This is how I initiate the ID3DXFont
		MessageBox(handle,"Create Font Error","error",0);
		return FALSE;
and I use DrawText method to draw text :-
font->DrawTextW(NULL,L"Hi ... What's up ?",-1,&textRect,DT_LEFT|DT_TOP,D3DCOLOR_RGBA(0,0,0,255));
This is run fine, even I change the text to "·´Êͺ" . But when I change the text to "·´Êͺ¢éͤÇÒÁ" (notice the upper level charator 'äÁéâ·') , I got Access Violation Error. I have tried the managed DirectX version (with C#) , it run fine with no error. Of course , this is international community, and there are only few people here knows thai, but here is my last resort. If anyone have any comment or suggestion, please help me. Sorry for my not-so-good English (quite bad, actually ). ^^'

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this