On Wed, Aug 08, 2007 at 09:46:06AM +0800, Harry Lin D332 (?????q) wrote: > Hi, > > I used the TTF font rasterizer to make more than 30000 pngs for Chinese font. > > http://linuxfromscratch.org/pipermail/links-list/2003-November/004302.html > > And after making Links, the size of the execution file is 114.3M ?K?K. > > I can??t run the program, as I run ./links, the process is killed instantly. > :-(
You probably have set some limit on virtual memory or executable size in your system. Try to increase it. Use ulimit. It shouldn't be a problem, those 114M just lie on the disk and are mapped into memory only on demand and then freed again. Shouldn't make difference if the fonts are mmap()ed or compiled into the binary like this. I just wonder how long the compilation of font_include.c took with 114MB of fonts :) Didn't your gcc explode? :) > > > > So I want to render the texts by DrawString() instead of Blit() of the > DFBSurface API (directfb.c directfb_draw_bitmap() ), just drawing the texts > with a ttf font directly rather than bliting from the pngs > > Is it realizable? Thanks. Yes, but will it then run on OS/2 Pmshell, AtheOS GUI, FreeMint and other obscure operating systems I actually even never saw in my life? Maybe the font library doesn't compile on them. It will also be slower and/or uglier. To antialias properly you have to first draw in a huge resolution and then scale down. Any other algorithm IMHO produces incorrect results. Are these fonts under a licence compatible with GPL? It would be nice to add these PNG's into Links with some switch like --enable-chinese. CL< > > _______________________________________________ > links-list mailing list > links-list@linuxfromscratch.org > http://linuxfromscratch.org/mailman/listinfo/links-list _______________________________________________ links-list mailing list links-list@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/links-list