[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[silpa-discuss] [bug #29742] Simple Rendering of unicode text
From: |
Laxminarayan Kamath |
Subject: |
[silpa-discuss] [bug #29742] Simple Rendering of unicode text |
Date: |
Sun, 02 May 2010 08:12:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a4pre) Gecko/20100318 Minefield/3.7a4pre |
Follow-up Comment #1, bug #29742 (project silpa):
allow to specify page width in terms of pixels and font size.
Calculate defaults using this pseudocode.
1) extract view related information from http headers.
a) resolution
b) dpi
c) is device mobile or desktop?
2) check if resolution was passed. If yes, first is always width . use 80 or
95% of it as page width (remaining is margin)
3) if resolution was not mentioned .. check if device is mobile or desktop.
If desktop, defualt width to 800 . else default width to 240
3) depending on dpi, scale up or down font size. else use some sane defaults
depending on resolution and device type ( I am not so much expert to comment
on that) 12 or 14 seems to be good choice for desktop and 6 to 8 seems to be
good for mobile.
If you are really serious about this and want to take it further, you could
probably get a database of mobile devices wiith their resolution etc..
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?29742>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/