From yann.souro_sanou at iwedia.com Wed Aug 1 01:55:12 2007 From: yann.souro_sanou at iwedia.com (yann.souro_sanou at iwedia.com) Date: Wed, 01 Aug 2007 09:55:12 +0200 Subject: [links] Links svg and style rendering Message-ID: <46B03C60.9010008@iwedia.com> Thanks for all your answers. Indeed, I am mostly interested in "tiny" browser supporting javascript and CSS under directFB. It seems the only browser that fulfill my expectations are running on top of GTK-DFB (~47MB). It is to much. Is there any way to decrease GTK-DFB place ?? Are there other browsers supporting natively directFB than Links ??? From harry.lin at coretronic.com Tue Aug 7 19:46:06 2007 From: harry.lin at coretronic.com (=?big5?B?SGFycnkgTGluIEQzMzIgKKSkpfq5cSk=?=) Date: Wed, 8 Aug 2007 09:46:06 +0800 Subject: [links] DirectFB font rendering Message-ID: 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 ??. I can?t run the program, as I run ./links, the process is killed instantly. :-( 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://linuxfromscratch.org/pipermail/links-list/attachments/20070808/bd159230/attachment.html From harry.lin at coretronic.com Tue Aug 7 20:11:09 2007 From: harry.lin at coretronic.com (=?big5?B?SGFycnkgTGluIEQzMzIgKKSkpfq5cSk=?=) Date: Wed, 8 Aug 2007 10:11:09 +0800 Subject: [links] DirectFB rendering text In-Reply-To: <468E2C01.2090604@iwedia.com> Message-ID: Hello, I am a french developer and I am trying to use links in an embedded linux Set Top Box. I am now testing links which seems to be a very interesting project using DirectFB displaying system. I know that links doesn't support CSS or style features in HTML code, but I need to display some links ( tag) on DIrectFB, wherever I want, by using coordinates. I've already looked for some solution in directfb.c but I didn't find the method or function to display some text and links. Moreover I barely understand how links 'display system works. What I would like to know, is : 1. How does links do to display some text on DirectFB ? View_gr.c g_text_draw() #265 g_print_text() Dip.c g_print_text() #1804 print_letter() Dip.c print_letter() #1707 gd->draw_bitmap() The gd->draw_bitmap() is directfb.c #335 directfb_draw_bitmap() It blits the pngs to data->surface 2. How does links do to display data like "links" on DirectFB ? Maybe you can trace html.c html_a() ? I hope there will be a possibility to modify this method or to replace it with a new one. Thanks in advance for your advice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://linuxfromscratch.org/pipermail/links-list/attachments/20070808/baf8df18/attachment.html From clock at twibright.com Wed Aug 8 02:36:37 2007 From: clock at twibright.com (Karel Kulhavy) Date: Wed, 8 Aug 2007 10:36:37 +0200 Subject: [links] DirectFB font rendering In-Reply-To: References: Message-ID: <20070808083637.GB18511@kestrel.barix.local> 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 at linuxfromscratch.org > http://linuxfromscratch.org/mailman/listinfo/links-list From harry.lin at coretronic.com Wed Aug 8 19:32:27 2007 From: harry.lin at coretronic.com (=?big5?B?SGFycnkgTGluIEQzMzIgKKSkpfq5cSk=?=) Date: Thu, 9 Aug 2007 09:32:27 +0800 Subject: [links] DirectFB font rendering In-Reply-To: <20070808083637.GB18511@kestrel.barix.local> Message-ID: > 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 run Links on embedded linux without swap, and the memory on board is only about 58MB. :( > I just wonder how long the compilation of font_include.c took with 114MB of > fonts :) Didn't your gcc explode? :) The font_include.c is 317MB. After compiling, The font_include.o is about 110-120MB. When making Links, it cost more than 80% of system memory. I just wrote a script that sleeps to midnight and then make, so I don't know the actual time making Links with the more 30000 pngs. > > > > > > 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. > I just run Links on DirectFB. :p > 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. > I tried using DFB DrawGlyph() instead of draw_bitmap() in print_letter(), and the performance is really very very poor... I think the reason may be that I create the font and then release it for every character; I'll try to reduce the times of font create()... > 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. > The font is http://en.wikipedia.org/wiki/Arial_Unicode_MS, I'm not sure if it is under a license compatible with GPL... > CL< > > _______________________________________________ > links-list mailing list > links-list at linuxfromscratch.org > http://linuxfromscratch.org/mailman/listinfo/links-list From clock at twibright.com Thu Aug 9 04:41:16 2007 From: clock at twibright.com (Karel Kulhavy) Date: Thu, 9 Aug 2007 12:41:16 +0200 Subject: [links] DirectFB font rendering In-Reply-To: References: <20070808083637.GB18511@kestrel.barix.local> Message-ID: <20070809104116.GA31555@kestrel.barix.local> On Thu, Aug 09, 2007 at 09:32:27AM +0800, Harry Lin D332 (?????q) wrote: > > 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 run Links on embedded linux without swap, and the memory on board is only > about 58MB. :( 114MB shouldn't go into the semiconductor memory, but into the virtual memory. It's like several GB. Mikulas, can you comment on this? CL< > > I just wonder how long the compilation of font_include.c took with 114MB of > > fonts :) Didn't your gcc explode? :) > The font_include.c is 317MB. After compiling, The font_include.o is about > 110-120MB. > When making Links, it cost more than 80% of system memory. > I just wrote a script that sleeps to midnight and then make, so I don't know the actual time making Links with the more 30000 pngs. > > > > > > > > > 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. > > > I just run Links on DirectFB. :p > > 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. > > > > I tried using DFB DrawGlyph() instead of draw_bitmap() in print_letter(), and the performance is really very very poor... > I think the reason may be that I create the font and then release it for every character; > I'll try to reduce the times of font create()... > > 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. > > > The font is http://en.wikipedia.org/wiki/Arial_Unicode_MS, > I'm not sure if it is under a license compatible with GPL... > > > CL< > > > > _______________________________________________ > > links-list mailing list > > links-list at linuxfromscratch.org > > http://linuxfromscratch.org/mailman/listinfo/links-list > > _______________________________________________ > links-list mailing list > links-list at linuxfromscratch.org > http://linuxfromscratch.org/mailman/listinfo/links-list From mikulas at artax.karlin.mff.cuni.cz Thu Aug 9 07:33:01 2007 From: mikulas at artax.karlin.mff.cuni.cz (Mikulas Patocka) Date: Thu, 9 Aug 2007 15:33:01 +0200 (CEST) Subject: [links] DirectFB font rendering In-Reply-To: <20070809104116.GA31555@kestrel.barix.local> References: <20070808083637.GB18511@kestrel.barix.local> <20070809104116.GA31555@kestrel.barix.local> Message-ID: > > I run Links on embedded linux without swap, and the memory on board is > > only about 58MB. :( > > 114MB shouldn't go into the semiconductor memory, but into the virtual > memory. It's like several GB. Mikulas, can you comment on this? If you have CPU with paging, it should be demand-paged --- i.e. it loads only those pages that it requires and releases them if free memory goes low. If you have CPU without paging (*-nommu Linux kernels), it will load the whole binary, there is no help for it. You can change in font_include.c unsigned char font_data and struct letter letter_data to const unsigned char font_data and const struct letter letter_data to see if it helps (with some weird dynamic loaders it may help), but if your CPU has no paging, there is no improvement possible. Mikulas From edrosten at lanl.gov Thu Aug 9 09:31:22 2007 From: edrosten at lanl.gov (Edward Rosten) Date: Thu, 9 Aug 2007 09:31:22 -0600 (MDT) Subject: [links] DirectFB font rendering In-Reply-To: References: Message-ID: > 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. :-( Can you post the code and/or patches needed to do this? -Ed From harry.lin at coretronic.com Thu Aug 9 19:17:14 2007 From: harry.lin at coretronic.com (=?big5?B?SGFycnkgTGluIEQzMzIgKKSkpfq5cSk=?=) Date: Fri, 10 Aug 2007 09:17:14 +0800 Subject: [links] DirectFB font rendering In-Reply-To: Message-ID: > -----Original Message----- > From: links-list-bounces at linuxfromscratch.org > [mailto:links-list-bounces at linuxfromscratch.org] On Behalf Of Edward Rosten > Sent: Thursday, August 09, 2007 11:31 PM > To: Links WWW browser mailing list > Subject: Re: [links] DirectFB font rendering > > > > > 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 ??. > > > > I can?t run the program, as I run ./links, the process is killed instantly. :-( > > Can you post the code and/or patches needed to do this? > > -Ed Just compile the rasterizer below http://linuxfromscratch.org/pipermail/links-list/2003-November/004302.html Use ./rasterizer dump_all=1 fontfile.ttf to generate your own pngs for your font, And copy the pngs to Links/graphics/font/, rename the png folder according to other folder Run the generate_font at Links/graphics After that, you'll get a new font_include.c Make Links with it, you'll get the new binary containing your font From gohunder at yahoo.com Fri Aug 10 20:55:16 2007 From: gohunder at yahoo.com (Grant Hundertmark) Date: Fri, 10 Aug 2007 19:55:16 -0700 (PDT) Subject: [links] Scripting Links Message-ID: <281707.8716.qm@web34707.mail.mud.yahoo.com> I am attempting the write a script to test netlogin web authentication using links. There are many clunky gui test tools to do this, but I hoped that a cli based browser with javascript might be a better solution. Process: 1) attempt to access a web page and you get redirected to the login page. (I need to verify the page content). Would links -dump http:/www.bob.com work? 2) when a login page is reached a javascript login screen appears. I need to be able to enter the user name and password in the auth window. Then verify the original attempted web url is reached. I do not see any documentation of cli commands such as links (-dump) on the Twibright page. Is there documentation on all available args? I noticed that some other flavors of links support browser scripting. Is this what I am looking for. Of course they do not support java script... so it doesn't matter. Thank you for your time and patience. Grant ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC From gohunder at yahoo.com Fri Aug 10 21:22:03 2007 From: gohunder at yahoo.com (Grant Hundertmark) Date: Fri, 10 Aug 2007 20:22:03 -0700 (PDT) Subject: [links] links args ... stupid questiion Message-ID: <994340.46257.qm@web34703.mail.mud.yahoo.com> links -help dumps the links args. Ignore that silly portion of my previous post. grant ____________________________________________________________________________________ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ From clock at twibright.com Sat Aug 11 11:57:13 2007 From: clock at twibright.com (Karel Kulhavy) Date: Sat, 11 Aug 2007 19:57:13 +0200 Subject: [links] Scripting Links In-Reply-To: <281707.8716.qm@web34707.mail.mud.yahoo.com> References: <281707.8716.qm@web34707.mail.mud.yahoo.com> Message-ID: <20070811175713.GA25290@kestrel.barix.local> On Fri, Aug 10, 2007 at 07:55:16PM -0700, Grant Hundertmark wrote: > I am attempting the write a script to test netlogin web authentication using links. There are many clunky gui test tools to do this, but I hoped that a cli based browser with javascript might be a better solution. > > Process: > 1) attempt to access a web page and you get redirected to the login page. (I > need to verify the page content). Would links -dump http:/www.bob.com work? > 2) when a login page is reached a javascript login screen appears. I need to > be able to enter the user name and password in the auth window. Then verify > the original attempted web url is reached. > > I do not see any documentation of cli commands such as links (-dump) on the > Twibright page. Is there documentation on all available args? It's in man links. If you don't want to install links just to see the manpage, then download the tarball file and look at it using "man ./links.1" (linux) or "man -M . 1 links" (OpenBSD). CL< > > I noticed that some other flavors of links support browser scripting. Is > this what I am looking for. Of course they do not support java script... so > it doesn't matter. > > Thank you for your time and patience. > Grant > > > > > > ____________________________________________________________________________________ > Yahoo! oneSearch: Finally, mobile search > that gives answers, not web links. > http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC > _______________________________________________ > links-list mailing list > links-list at linuxfromscratch.org > http://linuxfromscratch.org/mailman/listinfo/links-list From harry.lin at coretronic.com Fri Aug 17 01:18:34 2007 From: harry.lin at coretronic.com (=?big5?B?SGFycnkgTGluIEQzMzIgKKSkpfq5cSk=?=) Date: Fri, 17 Aug 2007 15:18:34 +0800 Subject: [links] memory leak? Message-ID: Hi, I run Links with directfb, and use valgrind to check memory leak Here is the result: ==7245== 3,276 (52 direct, 3,224 indirect) bytes in 1 blocks are definitely lost in loss record 225 of 1,079 ==7245== at 0x4004864: calloc (vg_replace_malloc.c:279) ==7245== by 0x40FFBCE: lock_node (in /usr/local/lib/libfusion-1.0.so.0.0.0) ==7245== by 0x410047C: fusion_reactor_attach (in /usr/local/lib/libfusion-1.0.so.0.0.0) ==7245== by 0x40A6A1A: IDirectFBSurface_Construct (in /usr/local/lib/libdirectfb-1.0.so.0.0.0) ==7245== by 0x40A5192: IDirectFB_CreateSurface (in /usr/local/lib/libdirectfb-1.0.so.0.0.0) ==7245== by 0x807F673: directfb_get_empty_bitmap (directfb.c:262) ==7245== by 0x80B0309: buffer_to_bitmap (img.c:679) ==7245== by 0x80B1279: img_end (img.c:716) ==7245== by 0x80B2E56: jpeg_restart (jpeg.c:376) ==7245== by 0x80B1D18: img_process_download (img.c:935) ==7245== by 0x80B21C2: insert_image (img.c:1287) ==7245== by 0x809CE69: do_image (html_gr.c:571) ==7245== by 0x809D57A: g_html_special (html_gr.c:736) ==7245== by 0x8098775: html_img (html.c:1121) ==7245== by 0x8097727: parse_html (html.c:2765) ==7245== by 0x809B1EE: g_do_format (html_gr.c:933) ==7245== by 0x809B436: g_format_html_part (html_gr.c:1023) ==7245== by 0x80A047A: really_format_html (html_r.c:1288) ==7245== by 0x80D51E0: format_html (session.c:981) ==7245== by 0x80D5596: cached_format_html (session.c:1190) ==7245== by 0x80D59E5: html_interpret (session.c:1343) ==7245== by 0x80DA6F7: fd_loaded (session.c:1967) ==7245== by 0x80CF925: ses_go_backward (session.c:2174) ==7245== by 0x80C86BF: object_timer (objreq.c:296) ==7245== by 0x80CDEA8: check_timers (select.c:153) ==7245== by 0x80CE1C5: select_loop (select.c:435) ==7245== by 0x80BC1FE: main (main.c:409) Something call get_empty_bitmap() and without free()?