icat: Add a command line argument for horizontal alignment

This commit is contained in:
Kovid Goyal
2017-12-15 13:08:27 +05:30
parent ddb2e41352
commit cb04deef63
2 changed files with 18 additions and 9 deletions

View File

@@ -227,7 +227,7 @@ def display_bitmap(rgb_data, width, height):
with NamedTemporaryFile(suffix='.rgba', delete=False) as f:
f.write(rgb_data)
assert len(rgb_data) == 4 * width * height
show(f.name, width, height, 32)
show(f.name, width, height, 32, align='left')
def test_render_string(text='Hello, world!', family='monospace', size=64.0, dpi=96.0):