Thanks. but you see "drawing the glyphs dot by dot" is very fast,and totle files size is small.
can you give me a idea to drawing the glyphs dot by dot? thanks --- [EMAIL PROTECTED] wrote: > To draw Chinese characters, you should use a > DirectFB Font. > > The Font can be Chinese characters. > > Look up DFBFont, that is what you need. > > This will be very much easier than drawing the > glyphs dot by dot. > > Chris > ======================== > Chris Bore > BORES Signal Processing > [EMAIL PROTECTED] > www.bores.com > Tel: +44 1483 740138 > Mobile: +44 7921 153 219 > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of shi hao > Sent: 15 September 2007 08:11 > To: [email protected] > Subject: Re: [directfb-dev] I want drow a dot > > thanks > > But it not I want. > I want drow a chinese char,I have get follow code.I > want to knows how to > write by directfb/DFB++? > > Thanks > > [======================================== > #include <libfbx/libfbx.h> > #include <libfbx/libfbx-gui.h> > #include <stdlib.h> > #include <unistd.h> > #include <stdio.h> > #define row 2 > #define col 3 > int main() > { > int x,y,i; > char *s="ÖÐÎĺº×ÓÏÔʾ"; > FILE *fp; > char buffer[32]; > unsigned char qh,wh; > unsigned long offset; > > fb_init(); > fb_handle_signals(); > x=fb_screen->width-300; > y=fb_screen->height-300; > > int n,j,k,m; > > if((fp=fopen("St.cfg","rb"))==NULL)/ > { > fb_cleanup(); > return 0; > } > > while(*s) > { > qh=*(s)-0xa0; > wh=*(s+1)-0xa0; > offset=(94*(qh-1)+(wh-1))*32L; > fseek(fp,offset,SEEK_SET); > fread(buffer,32,1,fp); bufferÖУ¨Ò»¸öºº×Ö£© > for(i=0;i<16;i++) > for(n=0;n<row;n++) > for( j=0;j<2;j++) > for( k=0;k<8;k++) > for(m=0;m<row;m++) > > if(((buffer[i*2+j]>>(7-k))&0x1)!=NULL) > fb_putpixel(x+8*j*col+k*col+m,y+i*row+n,0,255,0,fb_screen); > > s+=2; > x+=40; > } > return 1; > } > > ================================] > > --- Nikita Egorov <[EMAIL PROTECTED]> wrote: > > > See the thread > > > http://mail.directfb.org/pipermail/directfb-dev/2007-August/003321.html > > > > 2007/9/14, shi hao <[EMAIL PROTECTED]>: > > > > > > I want drow a dot,but I can not found any > function > > to > > > using,who can tell me ? > > > thanks > > > > > > > > > > > > > > > > > > ____________________________________________________________________________ > ________ > > > Pinpoint customers who are looking for what you > > sell. > > > http://searchmarketing.yahoo.com/ > > > > > > > > > _______________________________________________ > > > directfb-dev mailing list > > > [email protected] > > > > > > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > > > > > > > > > > > -- > > Best Regards > > Nikita Egorov > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > > > > > > ____________________________________________________________________________ > ________ > Don't let your dream ride pass you by. Make it a > reality with Yahoo! Autos. > http://autos.yahoo.com/index.html > > > > > > _______________________________________________ > directfb-dev mailing list > [email protected] > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > > ____________________________________________________________________________________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
