diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-06 16:39:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-06 16:39:08 +0200 |
commit | 57321bef35ac9ca98927e2fbb95845122d85303d (patch) | |
tree | 8df3056761d0acf5bd197df4d679cb04abb8a8ed /libs/canvas/canvas | |
parent | 787fe69ff870e634dafcbe9a4b5f35b3e3395eea (diff) |
consistent pango-text layout size - fixes #6490
Use gdk_pango_layout() for all text-size calculations.
In Canvas::Text always use the same context (local image surface)
for layouting (prior to this, local and window-context mix resulted in
different sizes).
Diffstat (limited to 'libs/canvas/canvas')
-rw-r--r-- | libs/canvas/canvas/text.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/canvas/canvas/text.h b/libs/canvas/canvas/text.h index 3dfe985955..f42a282c8e 100644 --- a/libs/canvas/canvas/text.h +++ b/libs/canvas/canvas/text.h @@ -66,9 +66,7 @@ private: mutable double _width_correction; double _clamped_width; - void _redraw (Cairo::RefPtr<Cairo::Context>) const; - void _redraw (Glib::RefPtr<Pango::Context>) const; - void __redraw (Glib::RefPtr<Pango::Layout>) const; + void _redraw () const; }; } |