diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-12-05 21:58:31 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-12-05 21:58:31 +0100 |
commit | c23a683df698f95164575db75b7b399744847725 (patch) | |
tree | ab0921365ee2fc075d373e069aaa971df2146fca /test | |
parent | 1ae6f8081b1e82f4dbb956156a5a0e09681bccfa (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')
-rw-r--r-- | test/dw_anchors_test.cc | 1 | ||||
-rw-r--r-- | test/dw_border_test.cc | 1 | ||||
-rw-r--r-- | test/dw_example.cc | 1 | ||||
-rw-r--r-- | test/dw_find_test.cc | 1 | ||||
-rw-r--r-- | test/dw_images_scaled.cc | 1 | ||||
-rw-r--r-- | test/dw_images_scaled2.cc | 1 | ||||
-rw-r--r-- | test/dw_images_simple.cc | 1 | ||||
-rw-r--r-- | test/dw_links.cc | 1 | ||||
-rw-r--r-- | test/dw_links2.cc | 1 | ||||
-rw-r--r-- | test/dw_lists.cc | 1 | ||||
-rw-r--r-- | test/dw_resource_test.cc | 1 | ||||
-rw-r--r-- | test/dw_table.cc | 1 | ||||
-rw-r--r-- | test/dw_table_aligned.cc | 1 | ||||
-rw-r--r-- | test/dw_ui_test.cc | 1 |
14 files changed, 14 insertions, 0 deletions
diff --git a/test/dw_anchors_test.cc b/test/dw_anchors_test.cc index 964b5838..977d724a 100644 --- a/test/dw_anchors_test.cc +++ b/test/dw_anchors_test.cc @@ -120,6 +120,7 @@ int main(int argc, char **argv) fontAttrs.size = 14; fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; + fontAttrs.letterSpacing = 0; StyleAttrs styleAttrs; styleAttrs.initValues (); diff --git a/test/dw_border_test.cc b/test/dw_border_test.cc index 008c6229..b7586608 100644 --- a/test/dw_border_test.cc +++ b/test/dw_border_test.cc @@ -57,6 +57,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); diff --git a/test/dw_example.cc b/test/dw_example.cc index ba551b91..1ce643f8 100644 --- a/test/dw_example.cc +++ b/test/dw_example.cc @@ -49,6 +49,7 @@ int main(int argc, char **argv) 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 = diff --git a/test/dw_find_test.cc b/test/dw_find_test.cc index 39f7b4c5..a0743754 100644 --- a/test/dw_find_test.cc +++ b/test/dw_find_test.cc @@ -93,6 +93,7 @@ int main(int argc, char **argv) fontAttrs.size = 14; fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; + fontAttrs.letterSpacing = 0; StyleAttrs styleAttrs; styleAttrs.initValues (); diff --git a/test/dw_images_scaled.cc b/test/dw_images_scaled.cc index da4e8735..c9f6e76e 100644 --- a/test/dw_images_scaled.cc +++ b/test/dw_images_scaled.cc @@ -112,6 +112,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); diff --git a/test/dw_images_scaled2.cc b/test/dw_images_scaled2.cc index 6d1bcd80..175ef414 100644 --- a/test/dw_images_scaled2.cc +++ b/test/dw_images_scaled2.cc @@ -87,6 +87,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); diff --git a/test/dw_images_simple.cc b/test/dw_images_simple.cc index 3fb3c49e..cd510160 100644 --- a/test/dw_images_simple.cc +++ b/test/dw_images_simple.cc @@ -110,6 +110,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); diff --git a/test/dw_links.cc b/test/dw_links.cc index cfa94d0c..44628b28 100644 --- a/test/dw_links.cc +++ b/test/dw_links.cc @@ -91,6 +91,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); diff --git a/test/dw_links2.cc b/test/dw_links2.cc index c63d8747..294950af 100644 --- a/test/dw_links2.cc +++ b/test/dw_links2.cc @@ -119,6 +119,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); diff --git a/test/dw_lists.cc b/test/dw_lists.cc index a87c6ddc..2725c34d 100644 --- a/test/dw_lists.cc +++ b/test/dw_lists.cc @@ -53,6 +53,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); diff --git a/test/dw_resource_test.cc b/test/dw_resource_test.cc index e399d958..28611bb0 100644 --- a/test/dw_resource_test.cc +++ b/test/dw_resource_test.cc @@ -54,6 +54,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); diff --git a/test/dw_table.cc b/test/dw_table.cc index 147b63c1..b0e9c4db 100644 --- a/test/dw_table.cc +++ b/test/dw_table.cc @@ -61,6 +61,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); Style *tableStyle = Style::create (layout, &styleAttrs); 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); diff --git a/test/dw_ui_test.cc b/test/dw_ui_test.cc index c65f76f9..2bc35893 100644 --- a/test/dw_ui_test.cc +++ b/test/dw_ui_test.cc @@ -60,6 +60,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); Style *tableStyle = Style::create (layout, &styleAttrs); |