summaryrefslogtreecommitdiff
path: root/gtk2_ardour/SConscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-02-05 15:34:13 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-02-05 15:34:13 +0000
commit4a0f94395d130a55107249a74f1adf4b758afd76 (patch)
tree884fb586d4bd4b869498313eee299bd0c0feabe9 /gtk2_ardour/SConscript
parenta38cba7f9721db5c2421326cc4d701e9f09345ea (diff)
adjusting region fade in/out lengths makes the fade in/out active; new font sizes; new font generation code in gtk2_ardour/SConscript; move mixer strip/group pane over to the RHS to match the editor; clean up ardour-sae-de.bindings.in; fix glue-to-music-time menu item (was always active)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3010 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/SConscript')
-rw-r--r--gtk2_ardour/SConscript120
1 files changed, 56 insertions, 64 deletions
diff --git a/gtk2_ardour/SConscript b/gtk2_ardour/SConscript
index b6baecf320..b54f5d1897 100644
--- a/gtk2_ardour/SConscript
+++ b/gtk2_ardour/SConscript
@@ -323,74 +323,66 @@ if gtkardour['IS_OSX']:
#
# OS X font rendering is different even with X11
#
- my_font_dict['%FONT_TINY%'] = 'Lucida Grande 7'
- my_font_dict['%FONT_SMALLERER%'] = 'Lucida Grande 8'
- my_font_dict['%FONT_SMALLER%'] = 'Lucida Grande 9'
- my_font_dict['%FONT_SMALL%'] = 'Lucida Grande 10'
- my_font_dict['%FONT_NORMAL%'] = 'Lucida Grande 11'
- my_font_dict['%FONT_BIG%'] = 'Lucida Grande 12'
- my_font_dict['%FONT_BIGGER%'] = 'Lucida Grande 14'
- my_font_dict['%FONT_LARGE%'] = 'Lucida Grande 18'
- my_font_dict['%FONT_LARGER%'] = 'Lucida Grande 28'
- my_font_dict['%FONT_HUGER%'] = 'Lucida Grande 36'
- my_font_dict['%FONT_MASSIVE%'] = 'Lucida Grande 60'
- my_font_dict['%FONT_BOLD_TINY%'] = 'Lucida Grande bold 7'
- my_font_dict['%FONT_BOLD_SMALLER%'] = 'Lucida Grande bold 9'
- my_font_dict['%FONT_BOLD_SMALL%'] = 'Lucida Grande bold 10'
- my_font_dict['%FONT_BOLD_NORMAL%'] = 'Lucida Grande bold 11'
- my_font_dict['%FONT_BOLD_BIG%'] = 'Lucida Grande bold 13'
- my_font_dict['%FONT_BOLD_BIGGER%'] = 'Lucida Grande bold 14'
- my_font_dict['%FONT_BOLD_LARGE%'] = 'Lucida Grande bold 20'
- my_font_dict['%FONT_BOLD_LARGER%'] = 'Lucida Grande bold 25'
- my_font_dict['%FONT_BOLD_HUGER%'] = 'Lucida Grande bold 36'
- my_font_dict['%FONT_BOLD_MASSIVE%'] = 'Lucida Grande bold 60'
- my_font_dict['%FONT_ITALIC_TINY%'] = 'Lucida Grande italic 7'
- my_font_dict['%FONT_ITALIC_SMALLER%'] = 'Lucida Grande italic 9'
- my_font_dict['%FONT_ITALIC_SMALL%'] = 'Lucida Grande italic 10'
- my_font_dict['%FONT_ITALIC_NORMAL%'] = 'Lucida Grande italic 11'
- my_font_dict['%FONT_ITALIC_BIG%'] = 'Lucida Grande italic 15'
- my_font_dict['%FONT_ITALIC_BIGGER%'] = 'Lucida Grande italic 16'
- my_font_dict['%FONT_ITALIC_LARGE%'] = 'Lucida Grande italic 20'
- my_font_dict['%FONT_ITALIC_LARGER%'] = 'Lucida Grande italic 28'
- my_font_dict['%FONT_ITALIC_HUGER%'] = 'Lucida Grande italic 36'
- my_font_dict['%FONT_ITALIC_MASSIVE%'] = 'Lucida Grande italic 60'
+
+ font_sizes = {
+ 'TINY' : '7',
+ 'SMALLER' : '9',
+ 'SMALL' : '10',
+ 'NORMAL' : '11',
+ 'BIG' : '12',
+ 'BIGGER' : '14',
+ 'LARGE' : '18',
+ 'LARGER' : '28',
+ 'HUGER' : '36',
+ 'MASSIVE' : '60'
+ }
+ basefont = "Lucida Grande"
+
else:
#
# Linux/X11 font rendering
#
- my_font_dict['%FONT_TINY%'] = 'sans 4'
- my_font_dict['%FONT_SMALLERER%'] = 'sans 6'
- my_font_dict['%FONT_SMALLER%'] = 'sans 6'
- my_font_dict['%FONT_SMALL%'] = 'sans 7'
- my_font_dict['%FONT_NORMAL%'] = 'sans 8'
- my_font_dict['%FONT_BIG%'] = 'sans 12'
- my_font_dict['%FONT_BIGGER%'] = 'sans 14'
- my_font_dict['%FONT_LARGE%'] = 'sans 18'
- my_font_dict['%FONT_LARGER%'] = 'sans 24'
- my_font_dict['%FONT_HUGER%'] = 'sans 34'
- my_font_dict['%FONT_MASSIVE%'] = 'sans 60'
- my_font_dict['%FONT_BOLD_TINY%'] = 'sans bold 4'
- my_font_dict['%FONT_BOLD_SMALLER%'] = 'sans bold 6'
- my_font_dict['%FONT_BOLD_SMALL%'] = 'sans bold 7'
- my_font_dict['%FONT_BOLD_NORMAL%'] = 'sans bold 8'
- my_font_dict['%FONT_BOLD_BIG%'] = 'sans bold 12'
- my_font_dict['%FONT_BOLD_BIGGER%'] = 'sans bold 14'
- my_font_dict['%FONT_BOLD_LARGE%'] = 'sans bold 18'
- my_font_dict['%FONT_BOLD_LARGER%'] = 'sans bold 24'
- my_font_dict['%FONT_BOLD_HUGE%'] = 'sans bold 25'
- my_font_dict['%FONT_BOLD_HUGER%'] = 'sans bold 34'
- my_font_dict['%FONT_BOLD_MASSIVE%'] = 'sans bold 60'
- my_font_dict['%FONT_ITALIC_TINY%'] = 'sans italic 4'
- my_font_dict['%FONT_ITALIC_SMALLER%'] = 'sans italic 6'
- my_font_dict['%FONT_ITALIC_SMALL%'] = 'sans italic 7'
- my_font_dict['%FONT_ITALIC_NORMAL%'] = 'sans italic 8'
- my_font_dict['%FONT_ITALIC_BIG%'] = 'sans italic 12'
- my_font_dict['%FONT_ITALIC_BIGGER%'] = 'sans italic 14'
- my_font_dict['%FONT_ITALIC_LARGE%'] = 'sans italic 18'
- my_font_dict['%FONT_ITALIC_LARGER%'] = 'sans italic 24'
- my_font_dict['%FONT_ITALIC_HUGE%'] = 'sans italic 25'
- my_font_dict['%FONT_ITALIC_HUGER%'] = 'sans italic 34'
- my_font_dict['%FONT_ITALIC_MASSIVE%'] = 'sans italic 60'
+
+ if gtkardour['OLDFONTS']:
+ font_sizes = {
+ 'TINY' : '4',
+ 'SMALLER' : '6',
+ 'SMALL' : '7',
+ 'NORMAL' : '8',
+ 'BIG' : '12',
+ 'BIGGER' : '14',
+ 'LARGE' : '18',
+ 'LARGER' : '24',
+ 'HUGER' : '34',
+ 'MASSIVE' : '60'
+ }
+ else:
+ font_sizes = {
+ 'TINY' : '6',
+ 'SMALLER' : '8',
+ 'SMALL' : '9',
+ 'NORMAL' : '10',
+ 'BIG' : '14',
+ 'BIGGER' : '16',
+ 'LARGE' : '18',
+ 'LARGER' : '24',
+ 'HUGER' : '34',
+ 'MASSIVE' : '60'
+ }
+
+ basefont = "sans"
+
+for style in ['', 'BOLD', 'ITALIC']:
+ for sizename,points in font_sizes.iteritems():
+ if (len (style)):
+ key = "_".join (['FONT',style,sizename])
+ fontstyle = " ".join ([basefont,style.lower(),points])
+ else:
+ key = "_".join (['FONT',sizename])
+ fontstyle = " ".join ([basefont,points])
+
+ key = '%' + key + '%'
+ my_font_dict[key] = fontstyle
ardour_dark_theme = env.SubstInFile ('ardour2_ui_dark.rc', 'ardour2_ui_dark.rc.in', SUBST_DICT = my_font_dict)
ardour_light_theme = env.SubstInFile ('ardour2_ui_light.rc', 'ardour2_ui_light.rc.in', SUBST_DICT = my_font_dict)