summaryrefslogtreecommitdiff
path: root/pango/pango-utils.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2006-03-31 00:21:30 +0000
committerTor Lillqvist <tml@src.gnome.org>2006-03-31 00:21:30 +0000
commita2d9f1a92b48b9a878f8bd2f9be5fd8f3c7b4c82 (patch)
treec668a9b5cb1627d209f23880ab22f5bbe390173a /pango/pango-utils.h
parentc4a19d3bf7a470605e86158f9c45fc3e630cd060 (diff)
downloadpango-a2d9f1a92b48b9a878f8bd2f9be5fd8f3c7b4c82.tar.gz
Fix blurred underlines on Win32 (#332656):
2006-03-30 Tor Lillqvist <tml@novell.com> Fix blurred underlines on Win32 (#332656): * pango/pango-utils.c (pango_quantize_line_geometry): New public function. Used to be the static quantize_position() in pangofc-font.c * pango/pango-utils.h: Declare it. * pango/pango.def: Here, too. * pango/pangofc-font.c (quantize_position): Remove. (get_face_metrics): Use pango_quantize_line_geometry() instead. * pango/pangocairo-win32font.c (create_metrics_for_context): Call pango_quantize_line_geometry() for underline and strikethrough geometries.
Diffstat (limited to 'pango/pango-utils.h')
-rw-r--r--pango/pango-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-utils.h b/pango/pango-utils.h
index 00d4889e..bc130532 100644
--- a/pango/pango-utils.h
+++ b/pango/pango-utils.h
@@ -102,6 +102,9 @@ gboolean pango_is_zero_width (gunichar ch) G_GNUC_CONST;
/* String interning for static strings */
#define I_(string) g_intern_static_string (string)
+void pango_quantize_line_geometry (int *thickness,
+ int *position);
+
G_END_DECLS
#endif /* __PANGO_UTILS_H__ */