In article
<5df64e00b6996dc50cae5decc8bca706-ehvcx1lfrqvarwycdtpqcefddqzlvf5dqunbajbtxf5bvkyjxv9obli6xf1xruqexv5bra==-webmail...@s,
   m0n0 <[email protected]> wrote:

> I expect them to be specified by CSS, but mostly not in pixels....
> probably in points or EM or something like that, but not in pixels. And
> NetSurf doesn't know anything about my screen DPI, so there is no way to
> calculate the pixel size, isn't it?

Screen DPI is assumed to be 90, unless the front end sets it differently.

The value is stored in nscss_screen_dpi in LibCSS's fixed point format.

In css/utils.c:

 /** Screen DPI in fixed point units: defaults to 90, which RISC OS uses */
 css_fixed nscss_screen_dpi = INTTOFIX(90);

-- 

Michael Drake (tlsa)                  http://www.netsurf-browser.org/


Reply via email to