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/dw_example.cc | |
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/dw_example.cc')
-rw-r--r-- | test/dw_example.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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 = |