pass font name

This commit is contained in:
j 2018-09-09 14:26:21 +02:00
parent 9c8d1ffabd
commit 05174b81fb

View file

@ -46,7 +46,7 @@ generator_template = '''<generatoritem id="Text">
<parameter> <parameter>
<parameterid>fontname</parameterid> <parameterid>fontname</parameterid>
<name>Font</name> <name>Font</name>
<value>Courier New</value> <value>%(font)s</value>
</parameter> </parameter>
<parameter> <parameter>
<parameterid>fontsize</parameterid> <parameterid>fontsize</parameterid>
@ -292,6 +292,8 @@ class Fcp:
sequences = [] sequences = []
fps = 25 fps = 25
fontsize = 18 fontsize = 18
font = 'Courier New'
#font = 'Lucida Grande'
def __init__(self): def __init__(self):
pass pass
@ -331,6 +333,7 @@ class Fcp:
'duration': end-start, 'duration': end-start,
'text': text, 'text': text,
'fontsize': self.fontsize, 'fontsize': self.fontsize,
'font': self.font,
} }
def save(self, output): def save(self, output):