Skip to content
  • Greg A. Woods's avatar
    include actual screen resolution in the resX & resY menus · d92f14a7
    Greg A. Woods authored and Alan Coopersmith's avatar Alan Coopersmith committed
    When given the "-scaled" option fetch the actual screen resolution and
    add that to the list of available resolutions for the resX and resY
    menus.
    
    I.e. If the pattern contains '*' for the resX and resY fields (i.e.
    instead of '0') then we wil end up with the menu containing "0, 100,
    NNN", which makes for a really good demonstration of how scaling of
    fonts without knowing the true screen resolution can lead to very wonky
    results.  Even if the values in the pattern are '0' you still get the
    true DPI as an option in the menus.
    
    When you specify a size for a scalable font, you should use points,
    never pixels.  Points are a physical unit of measurement.  There are
    always 72 points per inch.  Never more or less.  So to scale fonts
    properly on a screen the scaler needs to know the resolution of the
    display in pixels per inch in order to render text at a measurable
    physical point size.  In the current X11 world it is still up to the
    user to correctly speci...
    d92f14a7