On 30/12/12 20:24, Andrea Aime wrote:
> O Sun, Dec 30, 2012 at 12:11 PM, Ákos Maróy <[email protected]
> <mailto:[email protected]>> wrote:
>
>     PS: all the above assumes that
>     RendererUtilities.getDpi(rendererHints); would return a realistic
>     DPI value when called from StreamingRenderer. I wonder where the
>     DPI value comes from - does for example WMS request supply a
>     realistic DPI value?
>
> Let's start from this, since this is the underlying assumption that
> unfortunately cannot be met.
thanks for the detailed description provided.

while in the general case the client DPI value might not be known, in
the cases I'm shooting for, actually I'm able to tell the client DPI. my
aim is really to show the same (physical) sizes on different density
clients, therefore a 'pixel' metric is not usable for me. the target
devices I'm looking at are:

  * phones, tablets of different densities, ranging from 72dpi phones to
    retina-display iPhones / iPads
  * physical paper / print (600dpi or 900dpi)

IMHO, the notion of 'pixel' is not particularly useful when it comes to
styling. it's not even recommended for generic web pages either, where
'em' or other non-pixel sizes are generally used when writing 'good'
CSS. simply one just doesn't know how big a pixel is, and designs based
on pixels simply don't scale.

and indeed, computer (PC) screens generally know their DPI values as
well. but in the case of phones, tablets, this is even more true.

thus, if I consider the issue of determining the client DPI solved, what
approach would be the best way of implementing the suggested feature? my
biggest question is the last one from my previous e-mail, that is, what
would be the best way to specify a target-device size uom?

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to