changeset 1462:8de487d495f7

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>
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Sat, 05 Dec 2009 21:58:31 +0100
parents ef9bb7457ebb
children ee19ce246de5
files test/dw_anchors_test.cc test/dw_border_test.cc test/dw_example.cc test/dw_find_test.cc test/dw_images_scaled.cc test/dw_images_scaled2.cc test/dw_images_simple.cc test/dw_links.cc test/dw_links2.cc test/dw_lists.cc test/dw_resource_test.cc test/dw_table.cc test/dw_table_aligned.cc test/dw_ui_test.cc
diffstat 14 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/dw_anchors_test.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_anchors_test.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -120,6 +120,7 @@
    fontAttrs.size = 14;
    fontAttrs.weight = 400;
    fontAttrs.style = FONT_STYLE_NORMAL;
+   fontAttrs.letterSpacing = 0;
 
    StyleAttrs styleAttrs;
    styleAttrs.initValues ();
--- a/test/dw_border_test.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_border_test.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -57,6 +57,7 @@
    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);
--- a/test/dw_example.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_example.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -49,6 +49,7 @@
    fontAttrs.size = 14;
    fontAttrs.weight = 400;
    fontAttrs.style = dw::core::style::FONT_STYLE_NORMAL;
+   fontAttrs.letterSpacing = 0;
    styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs);
 
    styleAttrs.color =
--- a/test/dw_find_test.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_find_test.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -93,6 +93,7 @@
    fontAttrs.size = 14;
    fontAttrs.weight = 400;
    fontAttrs.style = FONT_STYLE_NORMAL;
+   fontAttrs.letterSpacing = 0;
 
    StyleAttrs styleAttrs;
    styleAttrs.initValues ();
--- a/test/dw_images_scaled.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_images_scaled.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -112,6 +112,7 @@
    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);
--- a/test/dw_images_scaled2.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_images_scaled2.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -87,6 +87,7 @@
    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);
--- a/test/dw_images_simple.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_images_simple.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -110,6 +110,7 @@
    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);
--- a/test/dw_links.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_links.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -91,6 +91,7 @@
    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);
--- a/test/dw_links2.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_links2.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -119,6 +119,7 @@
    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);
--- a/test/dw_lists.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_lists.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -53,6 +53,7 @@
    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);
--- a/test/dw_resource_test.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_resource_test.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -54,6 +54,7 @@
    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);
--- a/test/dw_table.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_table.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -61,6 +61,7 @@
    fontAttrs.size = 14;
    fontAttrs.weight = 400;
    fontAttrs.style = FONT_STYLE_NORMAL;
+   fontAttrs.letterSpacing = 0;
    styleAttrs.font = Font::create (layout, &fontAttrs);
 
    Style *tableStyle = Style::create (layout, &styleAttrs);
--- a/test/dw_table_aligned.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_table_aligned.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -56,6 +56,7 @@
    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);
--- a/test/dw_ui_test.cc	Fri Dec 04 19:39:31 2009 +0100
+++ b/test/dw_ui_test.cc	Sat Dec 05 21:58:31 2009 +0100
@@ -60,6 +60,7 @@
    fontAttrs.size = 14;
    fontAttrs.weight = 400;
    fontAttrs.style = FONT_STYLE_NORMAL;
+   fontAttrs.letterSpacing = 0;
    styleAttrs.font = Font::create (layout, &fontAttrs);
 
    Style *tableStyle = Style::create (layout, &styleAttrs);