how do display accents by CFont?

Login to reply to this topic.
Mon, 2008-07-14 10:05
Joined: 2008-01-26
Forum posts: 52

I use CFont in my application. my language is Arabic. i use unicode for displaying alphabet
and accents. it display alphabet but don't display accents.
how do display accents?
i.e .... it should display like this: ????? but it display ????

plz help me

thanks


Mon, 2008-07-14 11:02
Joined: 2008-01-26
Forum posts: 52
Re: how do display accents by CFont?

my problem is solved.
thanks.

Mon, 2008-07-14 11:03
Joined: 2008-01-16
Forum posts: 165
Re: how do display accents by CFont?

checkout this
http://www.newlc.com/article.php3?id_article=443


Thanks & Regards,
Md.Khalid Ahmad

Thu, 2008-07-17 04:42
Joined: 2008-01-26
Forum posts: 52
Re: how do display accents by CFont?

Thanks Khalid,It's useFul.

Thu, 2008-07-17 07:32
Joined: 2005-11-20
Forum posts: 1242
Re: how do display accents by CFont?

my problem is solved.

How did you solve it? A quick hint about the solution has the potential to help a lot of other programmers with the same problem that will arrive at this thread e.g. after a Google search. Imagine how they feel if they learn that there is a solution but do not find it here Smiling


René Brunner

Thu, 2008-07-17 12:55
Joined: 2007-09-24
Forum posts: 88
Re: how do display accents by CFont?

hi all
I also would like to say , If any one start a help thread and he get the solution than the thread should be ended with the solution ,
As René Brunner says

A quick hint about the solution has the potential to help a lot of other programmers with the same problem

In future i will take care of it , Hope my friends will also follow the same things ,
Thanks and Regard
Praveen Kumar Sharma

Sun, 2008-07-20 05:39
Joined: 2008-01-26
Forum posts: 52
Re: how do display accents by CFont?

Hi gys.
I'm sorry that i don't describe how solved my problem. I use a font e.g arial,that has accent. by character Map in Accessories\System tools,
found unicodes of accents and in program use them. I want to show Arabic and i have to accent,but is one thing is important that if you want
to show one accent above/under a character you have to Append it's unicode before unicode of character . e.g if unicode of one accent is
-1614- and unicode of one character is -1601- by Draw text :
TBuf<20> text;
text.Append(1614);
text.Append(1601);
gc.DrawText(text,TRect(TPoint(x,y),TSize(x1,y1))),baseLine,CGraphicsContext::ERight,10);
Because i use arabic , i want to show text from right to left.
I hope to can describe my solution Sticking out tongue

Sun, 2008-07-20 06:38
Joined: 2005-11-20
Forum posts: 1242
Re: how do display accents by CFont?

Interesting information. Thanks Smiling


René Brunner

Sun, 2008-07-20 09:21
Joined: 2008-01-16
Forum posts: 165
Re: how do display accents by CFont?

Thanks farjamfard,

Really, Interesting Info. Smiling


Thanks & Regards,
Md.Khalid Ahmad

Mon, 2008-07-21 14:50
Joined: 2007-09-24
Forum posts: 88
Re: how do display accents by CFont?

Thanks farjamfard
feel good to see your info..
Thanks and Regard
Praveen Kumar Sharma

  • Login to reply to this topic.