summaryrefslogtreecommitdiff
path: root/pango/pango-context.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-03 15:59:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-03 16:30:23 -0400
commit77b78746c901f95ca45a9ccffe9c32a38c0fb32b (patch)
treed9902f62f26390d1fb8ae75ab20b2df45ef6ba49 /pango/pango-context.h
parentb5634799586ed8e3496ffc237b8d08e6d4e64d67 (diff)
downloadpango-77b78746c901f95ca45a9ccffe9c32a38c0fb32b.tar.gz
context: Add an option for rounding glyph positions
This is a global option, similar in spirit to font options, so it makes sense to keep it in PangoContext. Default to rounding glyph positions, which preserves the pre-1.44 behavior and should help cure all the 'broken' font rendering with older cairo versions.
Diffstat (limited to 'pango/pango-context.h')
-rw-r--r--pango/pango-context.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pango/pango-context.h b/pango/pango-context.h
index af934491..0f775ff4 100644
--- a/pango/pango-context.h
+++ b/pango/pango-context.h
@@ -113,6 +113,13 @@ void pango_context_set_matrix (PangoContext
PANGO_AVAILABLE_IN_1_6
const PangoMatrix * pango_context_get_matrix (PangoContext *context);
+PANGO_AVAILABLE_IN_1_44
+void pango_context_set_round_glyph_positions (PangoContext *context,
+ gboolean round_positions);
+PANGO_AVAILABLE_IN_1_44
+gboolean pango_context_get_round_glyph_positions (PangoContext *context);
+
+
/* Break a string of Unicode characters into segments with
* consistent shaping/language engine and bidrectional level.
* Returns a #GList of #PangoItem's