BUILD: remove background color from textgen

remove the background color when generating the text, 
then remove the extraneous deutex arguments
This commit is contained in:
Nick Zatkovich 2017-07-30 14:08:17 -07:00
parent 617a15354f
commit d3038fad30
3 changed files with 11 additions and 9 deletions

View file

@ -11,7 +11,7 @@ import re
from common import *
# Background color for output files.
BACKGROUND_COLOR = '#00ffff'
BACKGROUND_COLOR = None
# Width of a space character in pixels.
SPACE_WIDTH = 4
@ -142,10 +142,12 @@ for xy, string in args['strings']:
command_line.extend(smallfont.draw_commands_for_text(
string, xy[0], xy[1]))
command_line.extend((
'-background', BACKGROUND_COLOR,
'-flatten', args['filename'],
))
if BACKGROUND_COLOR is not None:
command_line.extend((
'-background', BACKGROUND_COLOR,
'-flatten'
))
command_line.extend((args['filename'],))
invoke_command(command_line)

View file

@ -18,7 +18,7 @@ COLOR_RED = (0, 100, 100)
COLOR_WHITE = (0, 0, 0)
# Background color for output files.
BACKGROUND_COLOR = '#00ffff'
BACKGROUND_COLOR = None
# Height of font in pixels.
FONT_HEIGHT = 15