 |
|
 |
I try to display arabic with a font that support arabic character with this code but it doesnt work
Is it limited to chinese ??
|
|
|
|
 |
|
 |
Eric,
This is a very good project. If you can calculate the current position for next new character, the project will be nicer. To display several characters vertically will be even better.
This is the statement with hard code 20 units as the width of any character as follows:
m_kanjiFont.DrawGlyph(m_KanjiLabel.GetDC()->GetSafeHdc(), 0x2434, 20, 0);
As a result, several characters are displayed too close each other.
I will send you updated version to provide the correct values, when I finish more code in future.
Thanks!
James
James Cao
|
|
|
|
 |
|
 |
My computer is tranditional Chinese Windows system. In my operation system, I can use many kind of language to specify the file names like Japanese, Korean, etc. But when I try to write a program to get the file names and show them, it shows the file names incorrectly. How can I show the file names correctly (get the correct font to show them)? Thanks for your answer.
|
|
|
|
 |
|
 |
Dear colleagues, Eric!
Could somebody tell me are there any advantages/disadvantages of using the described approach comparing with using just GetCharacterPlacement, please?
Using GetCharacterPlacement is a bit slower I know, but isn't it much simpler than reading/parsing etc. TTF data?
Or does somebody know are there cases when GetCharacterPlacement cannot help?
Thanks.
DG
|
|
|
|
 |
|
 |
:-O1.Can You please let me know how can we handle rotated kanji text which are at an angle of 270 etc.,
2.ONE MORE QUERY IS THAT: "How could I handle rotated text,since my application is giving me text in a compact way when i roate the text"
THANKS
LEELA PRASANNA K
|
|
|
|
 |
|
 |
Great! what about to show Japanish in the Title caption bar of european systems?
I mean... if is posible to show japanish characters instead "KanjiDemo"... I've changed
also the system font in runtime to "Arial Unicode MS" but it also not function
Thanks!
|
|
|
|
 |
|
 |
I'm new to MFC and Windows programming in general, although well-versed with Java. I switched to Visual C++ precisely because I'm developing a Chinese-enabled program for Windows (a new Chinese input method), but I'm disappointed to find the lack of Unicode support (and proper display of Unicode fonts) in C++/MFC, or at least of facility of use, as compared to Java. Anyway, I was excited to come across your KanjiDemo after days of searching, because it promises to be exactly what I need. Unfortunately, I couldn't get it compiled. The compiler output isn't very helpful. Might this be related to language packs, or localization DLL's?
--------------------Configuration: KanjiDemo - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
StdAfx.cpp
Compiling...
KanjiDemo.cpp
c:\program files\kanjifont_demo\kanjidemo\kanjidemo.cpp(4) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
KanjiDemoDlg.cpp
c:\program files\kanjifont_demo\kanjidemo\kanjidemodlg.cpp(4) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
KanjiFont.cxx
c:\program files\kanjifont_demo\kanjifont.cxx(17) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
KanjiInfo.cxx
c:\program files\kanjifont_demo\kanjiinfo.cxx(4) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
KanjiDemo.exe - 4 error(s), 0 warning(s)
ar^ch
|
|
|
|
 |
|
 |
Windows 95/98 does have SOME support for Unicode. If the user has installed any of the language packs for MSIE, then ExtTextOutW or TextOutW can be used to display Unicode characters. See MSDN article Q210341.
There is also a native font control which allows dialog box controls to use a different language to the system default
|
|
|
|
 |
|
 |
ExtTextOutW isn't implmented on 95 & 98, and the
language packs for IE are something I had not had
tiem to expirement with. I came up with this because
it works w/o patches on al platforms
|
|
|
|
 |
|
 |
ExtTextOut and TextOut are implemented with Unicode versions on all platforms- see the MSDN library. I have used them myself to output Chinese on the original version of Windows 95.
|
|
|
|
 |
|
 |
Thats not 100% true
If you want output specifc characters, you have to do very different things on NT 2000 & 98 and 95 (provided you have the proper patches for the later two). It all depends on want you want to achive and how uniformly and easily you want to do it. Whatever the API naturaly provides definently not consistant across platforms and convoluted at best.
These articles describe the problems with unicode and somewhere on MSDN is a big check list of what doesn't work as far as unicode on 95
Q210341 INFO: Unicode Support in Windows 95 and Windows 98
Q241020 HOWTO: Translate Unicode Character Codes to
|
|
|
|
 |
|
 |
Dear Eric,
I am willing to develop Unicode Hindi and Bengali open type font processor . Can you please help me? my email address is nura_azom@hotmail.com
Thank you in advance
Lipon
|
|
|
|
 |
|
 |
Hello Eric,
Thanks so much for the enlightenment. Can you help and
provide any guide on the following
1. How to obtain JWPce, if the source is freely available
2. Practical use of IME, especially the ActiveX Global IME,
which works on say non-Japanese Windows to provide
Japanese character input
|
|
|
|
 |
|
 |
The source for JWPce is available. If you
search for it on google.com its the first link
that I find. the WWWJDIC page has links to it as
well - I dont have them handy right now or
I'd post them.
As for practical use of IME, I have not had much
expirence with it or time to expirement
|
|
|
|
 |
|
 |
This simple to use collection of objects is extremely simple to use, as well as well coded! My hat is off to someone who finally solved this problem, and solved it righ (not like some certain global software giant I know).
Great stuff eric.
--Big
|
|
|
|
 |