summaryrefslogtreecommitdiff
path: root/pango/pango-gravity.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-07-22 16:24:43 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-07-22 16:24:43 -0400
commitac2ce962e9c257657eeceaf08d6aeeddd6faaa83 (patch)
tree16daaf469efe888429edd462499cb46ea4d7838c /pango/pango-gravity.h
parent0df5c40d43a8d87a917991780595d9fadd19afb6 (diff)
downloadpango-ac2ce962e9c257657eeceaf08d6aeeddd6faaa83.tar.gz
Bug 410169 – gravity problem with Common chars
Only show wide chars (as in g_unichar_iswide()) upright. This improves rendering of 1) digits in CJK context, and 2) Narrow Hangul characters. New public API: pango_gravity_get_for_script_and_width()
Diffstat (limited to 'pango/pango-gravity.h')
-rw-r--r--pango/pango-gravity.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-gravity.h b/pango/pango-gravity.h
index 2e42ebd8..d2fa9647 100644
--- a/pango/pango-gravity.h
+++ b/pango/pango-gravity.h
@@ -102,6 +102,11 @@ PangoGravity pango_gravity_get_for_matrix (const PangoMatrix *matrix) G_GNUC_PUR
PangoGravity pango_gravity_get_for_script (PangoScript script,
PangoGravity base_gravity,
PangoGravityHint hint) G_GNUC_CONST;
+PangoGravity pango_gravity_get_for_script_and_width
+ (PangoScript script,
+ gboolean wide,
+ PangoGravity base_gravity,
+ PangoGravityHint hint) G_GNUC_CONST;
G_END_DECLS