Re: [Sugar-devel] Browse scaling for XO display
#todo: trac #1657 htmlScale = 1.43 On Thu, Nov 4, 2010 at 12:27 AM, Walter Bender walter.ben...@gmail.comwrote: Does anyone recall what we did to make Browse rescale web pages for the XO display? Here in Peru there is a series of pages that scale properly from a server but not from the file system with Browse 108 on Sugar 0.84 but Browse on 703 rescales both sources properly. (Sorry, I don't know which version of Browse was on 703). -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Browse scaling for XO display
Hi Walter, older builds had a nasty xulrunner patch, forcing dpi to 133, possibly as a workaround to xulrunning ignoring configured DPIs. I don't think that it's been carried forward -- I suspect xulrunner now obeys configured DPIs better. Given that configured DPI is the key element here, I don't think from the server vs from disk is likely to make a difference. A CSS definition set in points, % or picas is lurking somewhere... it is in an external file whose url works or breaks on disk or server. hth m On Thu, Nov 4, 2010 at 12:27 AM, Walter Bender walter.ben...@gmail.com wrote: Does anyone recall what we did to make Browse rescale web pages for the XO display? Here in Peru there is a series of pages that scale properly from a server but not from the file system with Browse 108 on Sugar 0.84 but Browse on 703 rescales both sources properly. (Sorry, I don't know which version of Browse was on 703). -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Browse scaling for XO display
Walter, If I remember correctly there was a build of Browse that had layout.css.dpi set to default and that did not scale well on the XO. The versions of Browse that I have used on the XO that scale pages well have layout.css.dpi=134 http://kb.mozillazine.org/Layout.css.dpi rihowa...@gmail.com linux - the best things in life are free On Nov 3, 2010, at 9:27 PM, Walter Bender wrote: Does anyone recall what we did to make Browse rescale web pages for the XO display? Here in Peru there is a series of pages that scale properly from a server but not from the file system with Browse 108 on Sugar 0.84 but Browse on 703 rescales both sources properly. (Sorry, I don't know which version of Browse was on 703). -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Browse scaling for XO display
On Thu, Nov 4, 2010 at 4:41 PM, Simon Schampijer si...@schampijer.de wrote: http://git.sugarlabs.org/projects/hulahop/repos/mainline/blobs/master/python/__init__.py#line96 We still do set the DPI in hulahop. Slightly OT: However I think some pages display rather badly on the XO. For example the links on the top left on the google landing page are rather small and blurry (not when in b/w mode). In the last days I tried to figure if we can improve there but I did not find a good solution yet. We used to have a xulrunner patch to go with this. I forget the exact details, but it was XO specific so it might have gone lost (there is a discussion somewhere on b.m.o about why it was necessary). Marco ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Browse scaling for XO display
On Thu, Nov 4, 2010 at 5:00 PM, Marco Pesenti Gritti ma...@marcopg.org wrote: On Thu, Nov 4, 2010 at 4:41 PM, Simon Schampijer si...@schampijer.de wrote: http://git.sugarlabs.org/projects/hulahop/repos/mainline/blobs/master/python/__init__.py#line96 We still do set the DPI in hulahop. Slightly OT: However I think some pages display rather badly on the XO. For example the links on the top left on the google landing page are rather small and blurry (not when in b/w mode). In the last days I tried to figure if we can improve there but I did not find a good solution yet. We used to have a xulrunner patch to go with this. I forget the exact details, but it was XO specific so it might have gone lost (there is a discussion somewhere on b.m.o about why it was necessary). https://bugzilla.mozilla.org/show_bug.cgi?id=374775#c5 Marco ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Browse scaling for XO display
On 11/04/2010 06:14 PM, Marco Pesenti Gritti wrote: On Thu, Nov 4, 2010 at 5:00 PM, Marco Pesenti Grittima...@marcopg.org wrote: On Thu, Nov 4, 2010 at 4:41 PM, Simon Schampijersi...@schampijer.de wrote: http://git.sugarlabs.org/projects/hulahop/repos/mainline/blobs/master/python/__init__.py#line96 We still do set the DPI in hulahop. Slightly OT: However I think some pages display rather badly on the XO. For example the links on the top left on the google landing page are rather small and blurry (not when in b/w mode). In the last days I tried to figure if we can improve there but I did not find a good solution yet. We used to have a xulrunner patch to go with this. I forget the exact details, but it was XO specific so it might have gone lost (there is a discussion somewhere on b.m.o about why it was necessary). https://bugzilla.mozilla.org/show_bug.cgi?id=374775#c5 Marco Thanks Marco! I just checked our old rpms (http://koji.fedoraproject.org/koji/buildinfo?buildID=65584) and the patch below seem to match the discussion in the bug you posted. Will check now what the xulrunner F11 code looks like... Regards, Simon Index: gfx/src/thebes/nsThebesDeviceContext.cpp === RCS file: /cvsroot/mozilla/gfx/src/thebes/nsThebesDeviceContext.cpp,v retrieving revision 1.54 diff -u -r1.54 nsThebesDeviceContext.cpp --- gfx/src/thebes/nsThebesDeviceContext.cpp19 Mar 2007 23:16:15 - 1.54 +++ gfx/src/thebes/nsThebesDeviceContext.cpp22 Mar 2007 15:10:19 - @@ -228,6 +228,7 @@ NS_ASSERTION(dpi != -1, no dpi set); +dotsArePixels = PR_FALSE; if (dotsArePixels) { // First figure out the closest multiple of 96, which is the number of // dev pixels per CSS pixel. Then, divide that into AppUnitsPerCSSPixel() ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Browse scaling for XO display
Does anyone recall what we did to make Browse rescale web pages for the XO display? Here in Peru there is a series of pages that scale properly from a server but not from the file system with Browse 108 on Sugar 0.84 but Browse on 703 rescales both sources properly. (Sorry, I don't know which version of Browse was on 703). -walter -- Walter Bender Sugar Labs http://www.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel