![]() |
|
#1
|
|||
|
|||
how to display chinese?I need display chinese in my program
I Load chinese font face(simsun(gb2312-1980)) but the string dispeared can you tell me what happened? and what I should do if I want get chinese? thank you very much! |
|||
|
#2
|
|||
|
|||
|
Does someone meet the same question?
|
|
#3
|
||||
|
||||
|
I thought that was you on the fltk newsgroups. The same question was posed there.
Quote:
So it appears that font will not work with 1.1.x. IIRC this was going to be addressed for 2.0. I can't say anything for the patched version the link will take you to. Perhaps it would be worth the hassle. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#4
|
|||
|
|||
|
Quote:
you say 1.1.x didn't surpport chinese. and 2.0 will ? I download the fltk-utf8 patch,but it also can't work. if the problem can't be solved,I must choose another GUI I have study it for a long time. I don't want to give up it! |
|
#5
|
||||
|
||||
|
Quote:
Part of the problem I have is that I use the standard fonts and unless a program installs its own special font I never mess with them. Maybe you can teach me a thing or two here. What exactly is utf8 for and how does it relate with the fonts? Are there fonts you can use (to display chinese characters) that are not of this extended type? You are correct, 1.1.x does not have utf8 support and 2.0 is supposed to have it. Like I said, I just don't know the answers so if you could shed some light on it for me perhaps I could be more helpful. Quote:
Quote:
Yikes! That sounds really bad. I guess I will have to do a little reading on utf8 and how it would relate to a chinese font. Good Luck, sorry I can't be more helpful just yet. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#6
|
|||
|
|||
|
Quote:
I had installed the fltk-utf8, but it also can't show chinese characters. when intall it ,I get some warning like: lcUniConv/big5.h:4103: warning: `big5_wctomb' defined but not used lcUniConv/gb2312.h:2518: warning: `gb2312_wctomb' defined but not used lcUniConv/jisx0201.h:30: warning: `jisx0201_wctomb' defined but not used lcUniConv/jisx0208.h:2360: warning: `jisx0208_wctomb' defined but not used lcUniConv/jisx0212.h:2135: warning: `jisx0212_wctomb' defined but not used lcUniConv/ksc5601.h:2966: warning: `ksc5601_wctomb' defined but not used You are so kindly. Thank you very much. I graduate form university last year. And now I am in a IT company. I like programming. But somtimes I have no enough confidence to work well 谢谢! |
|
#7
|
|||
|
|||
Re: how to display chinese?Quote:
FLTK-UTF8 can display chinese. But you must use UTF-8 encoded text and set the good font. see the test program test/utf8.cxx |
|
#8
|
|||
|
|||
Re: how to display chinese?Quote:
Yes,it can display chinese.Thank you very much! And I have another question.How to open XIM? This is my program: CPP / C++ / C Code:
The program should show "XIM open failed",because I didn't open XIM on X-Widnow.But it didn't show "XIM open failed". Last edited by cable_guy_67 : 08-Jul-2006 at 04:18.
Reason: added [c++] codetag
|
|
#9
|
|||
|
|||
Re: how to display chinese?Quote:
You don't need to do anything. All the XIM things are handled by FLTK-UTF8. You just need to start your XIM server and set the environmental variables in your shell. (i.e . : export LANG=zh_TW; export XMODIFIERS="@im=xcin-zh_CN") Then start your FLTK-UTF8 program. If you want to know how I've made it, you can take a look at src/Fl_x.cxx |
|
#10
|
|||
|
|||
Re: how to display chinese?Quote:
when I run my program with chinese ,the window display first, then the chinese character display.If the font is biger,it will take more time to display. Quote:
I want open XIM in my program , I Only need the function XOPenIM()? Thank you very much!! |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dial display | maverick | FLTK Forum | 5 | 04-Jul-2005 15:46 |
| problems with a text display in a tab | maveganzones | FLTK Forum | 2 | 23-Mar-2005 02:26 |
| How do I display <filename>.bmp on the screen? | oriharel | MS Visual C++ / MFC Forum | 1 | 01-Dec-2004 14:51 |
| uisng php to display php | dopee | MySQL / PHP Forum | 6 | 14-May-2004 18:40 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The