Changeset 2973

Show
Ignore:
Timestamp:
03/24/2007 11:41:13 AM (2 years ago)
Author:
paul
Message:

Testing macFontScaling, which effectively increases the setting of a fontsize by
2 points on Mac, to compensate for platform differences.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/settings.py

    r2230 r2973  
    8181#        expect.) 
    8282 
     83# macFontScaling: If you set a font to 10 pt it'll look medium-small on most 
     84# Windows and Linux screens. However, it will look very small on Mac because 
     85# of automatic conversion in OS X. 8pt fonts on Mac are barely even readable. 
     86# Set macFontScaling to True to make your fonts appear the same size on all  
     87# platforms. 
     88macFontScaling = False  ## will default to True once tested. 
     89  
    8390# When doing date calculations, displaying calendars, etc., this determines whether 
    8491# 'Sunday' or 'Monday' is considered the beginning of the week 
  • trunk/dabo/ui/uiwx/dFont.py

    r2604 r2973  
    6666 
    6767    def _setSize(self, val): 
     68        if wx.Platform == "__WXMAC__" and dabo.settings.macFontScaling: 
     69            val = round(val / .75) 
    6870        self._nativeFont.SetPointSize(val) 
    6971        self._propsChanged()