mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
Fix Clock Font on OSX (fixes Big Clock Window Size)
Meanwhile libpango was fixed and we use CTFontManagerRegisterFontsForURL() on OSX >=10.6
This commit is contained in:
parent
f25824ed28
commit
27d2f4950f
1 changed files with 13 additions and 15 deletions
|
|
@ -733,21 +733,19 @@ def build(bld):
|
||||||
'HUGER' : '36',
|
'HUGER' : '36',
|
||||||
'MASSIVE' : '60',
|
'MASSIVE' : '60',
|
||||||
}
|
}
|
||||||
|
if conf.env['build_target'] in ['panther', 'tiger', 'leopard'] or (Options.options.ppc and conf.env['build_target'] == 'snowleopard'):
|
||||||
# There is no acceptable monospace font available on older versions of OS X
|
# CTFontManagerRegisterFontsForURL for ArdourMono is 10.6 or newer
|
||||||
# and no API on those versions to load TTF files that will work with
|
# "Lucida Grande" is not mono-spaced, but works for most cases, except big-clock-window
|
||||||
# GTK/fontconfig/pango.
|
font_names = {
|
||||||
#
|
'MONOSPACE' : 'Monaco',
|
||||||
# In addition, the ArdourMono font gets clipped for some reason on OS X
|
'CLOCKFONT' : 'Lucida Grande',
|
||||||
#
|
}
|
||||||
# Moreover, Lucida Grande just seems to work even though it is not monospace
|
else:
|
||||||
# so just use it.
|
font_names = {
|
||||||
#
|
'MONOSPACE' : 'Monaco',
|
||||||
font_names = {
|
'CLOCKFONT' : 'ArdourMono',
|
||||||
'MONOSPACE' : 'Monaco',
|
}
|
||||||
'CLOCKFONT' : 'Lucida Grande',
|
else: # Linux/X11 & Windows fonts
|
||||||
}
|
|
||||||
else: # Linux/X11 fonts
|
|
||||||
basefont = '' # unspecified - use system defaults
|
basefont = '' # unspecified - use system defaults
|
||||||
font_sizes = {
|
font_sizes = {
|
||||||
'SMALLER' : '6',
|
'SMALLER' : '6',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue