aboutsummaryrefslogtreecommitdiff
path: root/test/dw_table_aligned.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-12-05 21:58:31 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-12-05 21:58:31 +0100
commitc23a683df698f95164575db75b7b399744847725 (patch)
treeab0921365ee2fc075d373e069aaa971df2146fca /test/dw_table_aligned.cc
parent1ae6f8081b1e82f4dbb956156a5a0e09681bccfa (diff)
initialize fontAttrs.letterSpacing in test programs
It would be a good idea to add a proper constructor to FontAttrs, but my attempts to do so while avoiding unnecessary initialization before attrs are copied over anyway resulted in pretty complicated c++ stuff which I want to avoid. We might find a sane way to do it some day. Reported by: Tim Nieradzik <tim.nieradzik@gmx.de>
Diffstat (limited to 'test/dw_table_aligned.cc')
-rw-r--r--test/dw_table_aligned.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dw_table_aligned.cc b/test/dw_table_aligned.cc
index 23c6b745..67cf21f3 100644
--- a/test/dw_table_aligned.cc
+++ b/test/dw_table_aligned.cc
@@ -56,6 +56,7 @@ int main(int argc, char **argv)
fontAttrs.size = 14;
fontAttrs.weight = 400;
fontAttrs.style = FONT_STYLE_NORMAL;
+ fontAttrs.letterSpacing = 0;
styleAttrs.font = Font::create (layout, &fontAttrs);
styleAttrs.color = Color::create (layout, 0x000000);