[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: putty can shape now..
- To: developer at arabeyes dot org
- Subject: RE: putty can shape now..
- From: "ahmad khalifa" <ahmadkhalifa at hotmail dot com>
- Date: Wed, 11 Feb 2004 07:59:49 +0000
From: "ahmad khalifa" <ahmadkhalifa at hotmail dot com>
when u call ExtTextOut with the flag ETO_GLYPH_INDEX, the input string
lpString, is not a
Unicode string oran ASCII string, its an INDEX string, that means (from
what i understand) that
lpString is a Double-Byte string of Glyph indices relative to the current
selected font in the given
display context...
well i tried to do what's in this email ( i didn't do what you said about
converting to CP-1256 ) and when i tested Putty i got arabic letters that
are not shaped and not orders and the wrong thing was not the same letters
i should see, for example instead of having Ó Ç á Çã i got Ø Ú Ù so i
think that there is something i am missing, another thing that i really
need to work on is the indexing thing in letters can someone forward me to
a web site that explains the UTF-8 at least so that i know what i am deal
with...
well u only get the letters (tah) and (zah), because they are 0xd8 and 0xd9
in CP-1256...
and as i said GetCharacterPlacement expects CP-1256 , and you give it
Unicode which is 2 bytes and
usually starts with 0xd8 and 0xd9..... so you have to add the funtion
WideCharToMultiByte() before
GetCharacterPlacement()....
just merge the 2 emails i sent u before...
ak...
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail