horiator / beamproject

Automatically exported from code.google.com/p/beamproject
0 stars 0 forks source link

Font-dialog not working for italic and bold (MAC) #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not consistent behaviour on all platforms.

Original issue reported on code.google.com by mikael.h...@gmail.com on 31 Jan 2015 at 5:04

GoogleCodeExporter commented 9 years ago
Changing in beaminframe.py line 253

            try:
                dc.SetFont(wx.Font(Size, 
                               wx.ROMAN, 
                               beamSettings.FontStyleDictionary[Settings['Style']], <-- instead of wx.NORMAL
                               beamSettings.FontWeightDictionary[Settings['Weight']], <-- instead of wx.NORMAL
                               False, 
                               face))
            except:
                dc.SetFont(wx.Font(Size, 
                               wx.ROMAN, 
                               beamSettings.FontStyleDictionary[Settings['Style']], 
                               beamSettings.FontWeightDictionary[Settings['Weight']], 
                               False, 
                               "Liberation Sans"))

Makes it possible to use italic and bold fonts on "Normal fonts" on Mac. Now 
all italic and bold fonts must be filtered out in the editlayoutdialog.py

Why do we have wx.NORMAL above? 

Original comment by mikael.h...@gmail.com on 4 Feb 2015 at 9:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r283.

Original comment by mikael.h...@gmail.com on 4 Feb 2015 at 9:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r284.

Original comment by mikael.h...@gmail.com on 4 Feb 2015 at 9:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r285.

Original comment by mikael.h...@gmail.com on 4 Feb 2015 at 10:04