![]() ![]()
For people working with Gecko layout code, this means that the old pixels-to-twips (and back again) conversions have been replaced with new conversion functions in nsPresContext, that convert between application units, CSS pixels and device pixels. User-controlled zooming into Web pages is a separate feature that we will implement for Firefox 3. This is not the end of the story about scaling, however. Up until now only we've only been able to scale at certain mysterious predefined ratios. Another benefit of this patch, by the way, is that scaling in printing and print preview has been reimplemented so that you can use any scale factor you like. Up until now it has been a rather poor approximation. If you draw a 1in x 1in box on the screen, it should really be a square inch if your system DPI is set correctly or you set the preference in Firefox. Also, whatever your DPI, we now support much better matching of CSS physical length values to your actual device. (For a good time, you can use this preference to test the scaling feature if you have only a regular screen.) If you can't bear it, you can use about:config to set the preference ' ' to something like 100 to turn the scaling off. This is basically a good thing except that for now, there are some bugs that make it hard to use. The net results are that if you have a high DPI screen, trunk builds will be scaling everything up by a factor of two or more, including Firefox UI. This value is used to convert CSS length-based measurements (e.g., CSS 'in ' units) to device pixels and then to application units.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |