Hi, Ryan Gallagher hat gesagt: // Ryan Gallagher wrote:
Can you specify a default font size in osx pd? I want all patches to open with a font size of 10.
You can start pd with "-font 10", but that only affects the default font size for newly created patches, IIR.
Other than that, you would have to change the first line in every patch to end in " 10;"
With a little bit of Perl or Python scripting, this is easy to do. in Python for example like:
#!/usr/bin/env python
import sys
FONT = '10' FILE = sys.argv[1]
lines = open(FILE, 'r').readlines() first = lines[0].split() first[-1] = '''%s;\n''' % FONT
lines[0] = ' '.join(first)
out = open(FILE, 'w') out.write(''.join(lines))
Frank Barknecht _ ______footils.org__