On Tuesday, April 1, 2014 5:56:53 PM UTC+5:30, Jonathan Kew wrote:
> 
> 
> > Hi,
> 
> >
> 
> > We have a property in greprefs.js "layout.css.dpi" by which we can
> 
> > control pixel size , but this doesn't work in Windows. There is
> 
> > another property "layout.css.devPixelsPerPx" which control font size
> 
> > in Windows but this needs to be modified each time as per system DPI.
> 
> > I need to show font size as per system DPI. How can this be achieved?
> 
> > I am using gecko SDK 14.0.1.
> 
> 
> 
> Set layout.css.devPixelsPerPx to -1.0. However, I expect this will be 
> 
> quite buggy in 14.0.1; you need a newer version of Gecko (at least Gecko 
> 
> 22 or thereabouts, IIRC) for better Windows DPI-setting support.
> 
> 
> 
> See https://bugzilla.mozilla.org/show_bug.cgi?id=820679 and its 
> 
> dependencies.
> 
> 
> 
> JK

I did the concerned change in greprefs.js file but nothing happened . Font size 
is same for all resolutions.
pref("layout.css.devPixelsPerPx", "-1.0");
Am i missing something here . Please help.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to