[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
chinese font
From: "Bug cheng" ####@####.#### Date: 8 Feb 2002 04:26:36 -0000 Message-Id: <HLEDIGEDFIMPLBIODFMKEEDKCAAA.chete@21cn.com> HI! all I want to use the chinest font ,but I don't know how i can do it . any one can help me ? Best Regards! Bug cheng | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
chinese font
From: zhaojianwei ####@####.#### Date: 9 Apr 2003 02:00:33 -0000 Message-Id: <3E937CC5.5020404@neusoft.com> hi everyone, I want to display chinese in microwin application,so i modified config file as following: #################################################################### # Chinese Han Zi Ku loadable font support #################################################################### HAVE_HZK_SUPPORT = Y HZK_FONT_DIR = "fonts/chinese" #################################################################### # Chinese GB2312 compiled in font support (gb2312font.c) #################################################################### HAVE_GB2312_SUPPORT = Y but i want to add another chinese font to microwin,such as simsun.ttc truetype font in MS windows 2000. Can i do it?and how? regards Jason | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
chinese font
From: zhaojianwei ####@####.#### Date: 9 Apr 2003 02:19:53 -0000 Message-Id: <3E93814F.1090201@neusoft.com> hi , to support chinese font,i set HAVE_GB2312-SUPPORT=Y and have compiled gb2312font.c to gb2312font.o, but I don't find gb2312font in gen_fonts[],is it not WMCOREFONT? Regards Jason | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] chinese font
From: "Greg Haerr" ####@####.#### Date: 10 Apr 2003 01:36:12 -0000 Message-Id: <03bf01c2feff$919e9540$3aba46a6@xmission.com> : to support chinese font,i set HAVE_GB2312-SUPPORT=Y and have compiled : gb2312font.c to gb2312font.o, but I don't find gb2312font in : gen_fonts[],is it not WMCOREFONT? Here is the way that chinese font support works in the 0.89 version. I have just completely rewritten the international support in the CVS version, which I will describe following. In version 0.89, setting HAVE_GB2312_SUPPORT=Y causes fonts/chinese/gb2312font.c to be compiled and linked with the server. Howerver, the fonts are not MWCOREFONTs, but rather use a klugy #ifdef override system in drivers/genfont.c and engine/devfont.c that automatically assume that all GrText strings are encoded in GB2312 DBCS format. After decoding, if the character is in the chinese font range (above 0xA1A1), then the character bitmap is _specially_ grabbed from the gb2312font.o file, and displayed. Otherwise, the current MWCOREFONT is used to display the ASCII character. In version 0.89pl11 CVS and later, I have rewritten the chinese/japanese/korean font stuff entirely. In the new code (which works), GrText takes a flag which specifies what format the input string is. These flags are MWTF_DBCS_GB, MWTF_DBCS_BIG5, etc. Now, the system operates differently depending on whether the older HAVE_GB2312_SUPPORT=Y or not. If not, then the system always decodes the GB2312 DBCS properly, but you must have an MWCOREFONT or truetype font which has characters at the A1A1 range. If the HAVE_GB2312_SUPPORT is set, then the system operates as before, but I have cleaned up all the DBCS-specific code and placed it in engine/font_dbcs.c. With the new system you can use a converted BDF ->PCF file for your chinese font, and just indicate the proper DBCS byte encoding for your GrText calls. This is likely the way to go, since the original GB2312 and BIG5 fonts were converted from BDF's in the first place, and thus don't require special handling, and are loadable. Finally, I am just putting the finishing touches on a new Microwindows native font format (.fnt) - which also includes a bdf->.fnt and bdf->.c converter so that the same font can be compiled in, or loaded from disk/flash. This system works now, except that it currently only allows a 256-char ASCII index into the font. Very soon, I should have the 16-bit UC16 font index working, in which case you could convert your chinese bdf font into .fnt, and load it for display at will. Hope this clarifies things, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
chinese font
From: zhaojianwei ####@####.#### Date: 16 Apr 2003 02:46:20 -0000 Message-Id: <3E9CC204.9020408@neusoft.com> hi all, I convert chinese font simsun.ttf to simsun24.bdf by ttf2bdf and copy it to microwin/src/fonts/truetype directory ,which is used to freetype font. and i modified microwin/src/demos/nanox/fontdemo.c as following : ....... #define FONTNAME "simsun24.bdf" .............. void do_paint(GR_EVENT_EXPOSURE *ep) { int i, y = 0; for (i=3; i<=5; ++i) { GR_FONT_INFO info; char buf[64]; font = GrCreateFont(FONTNAME, i, NULL); if (aa) GrSetFontAttr(font, GR_TFANTIALIAS|GR_TFKERNING, 0); //GrSetFontRotation(font, 150); GrSetGCFont(gc, font); GrGetFontInfo(font, &info); y += info.height; //sprintf(buf, "%d The Quick Brown Fox Jumped Over The Lazy Dog", i); sprintf(buf, "%d 字体测试 ", i); GrText(w, gc, 0, 24, buf, -1, GR_TFASCII); GrDestroyFont(font); } but when i execute microwin/src/fontdemo.sh , it says "create font using builtin font helvitica(1) ,hzk-createfont() simsun24.bdf not found".why? another, what is microwin/src/fonts/truetype/fonts.dir file ,and how to work with this file? Jason | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] chinese font
From: "Greg Haerr" ####@####.#### Date: 16 Apr 2003 04:59:05 -0000 Message-Id: <120601c303d3$8dd0a5b0$6401a8c0@gregnewport> > #define FONTNAME "simsun24.bdf" > .............. > font = GrCreateFont(FONTNAME, i, NULL); You must convert the .bdf to either .pcf or .fnt in order to load the font. These formats are properly supported only in the CVS microwindows version. Use compile fonts/convbdf.c to convert the bdf to .fnt format: ./convbdf -f simsun24.bdf Then give the full path to simsun24.fnt in the GrCreateFont. Regards, Greg > builtin font helvitica(1) ,hzk-createfont() simsun24.bdf not found".why? > > another, what is microwin/src/fonts/truetype/fonts.dir file ,and how to > work with this file? > > Jason > > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] chinese font
From: anthony ####@####.#### Date: 30 Jun 2003 15:09:14 -0000 Message-Id: <3F005C63.4060804@ms67.hinet.net> Hi, Iwant to display big-5 chinese characters. From previous discussion , I set in config as below: #################################################################### # Chinese Han Zi Ku loadable font support #################################################################### HAVE_HZK_SUPPORT = Y HZK_FONT_DIR = "fonts/chinese" #################################################################### # Chinese BIG5 compiled in font support (big5font.c) #################################################################### HAVE_BIG5_SUPPORT = Y I got error msg as below. Compiling font_dbcs.c ... font_dbcs.c: In function `dbcs_gettextbits': font_dbcs.c:176: warning: assignment from incompatible pointer type Compiling font_freetype.c ... Compiling font_fnt.c ... Compiling font_pcf.c ... Compiling font_hzk.c ... Compiling devtimer.c ... Compiling devpal8.c ... Compiling devpal4.c ... Creating library /microwindows-0.90/src/lib/libmwengine.a ... Building /microwindows-0.90/src/bin/convbdf tool ... Generating X6x13.c from font file ... Generating X6x13.c make[1]: *** No rule to make target `chinese/big5font.c', needed by `.depend'. Stop. make: *** [subdir-fonts] Error 2 who can teach me how to resolve it? tks, Anthony | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] chinese font
From: "Greg Haerr" ####@####.#### Date: 30 Jun 2003 18:39:41 -0000 Message-Id: <01a901c33f3c$9655d120$3aba46a6@xmission.com> : make[1]: *** No rule to make target `chinese/big5font.c', needed by : `.depend'. Stop. : make: *** [subdir-fonts] Error 2 : : : : who can teach me how to resolve it? tks, Pull down the microwindows-fonts-0.90.tar.gz and extract it into the src/fonts directory. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |