summaryrefslogtreecommitdiff
path: root/src/hb-graphite2.cc
diff options
context:
space:
mode:
authorBowon Ryu <bowon.ryu@samsung.com>2020-12-22 16:48:00 +0900
committerBowon Ryu <bowon.ryu@samsung.com>2020-12-22 16:48:00 +0900
commitfe65a6a32ba3654c532639ba656bd66b041d7dc6 (patch)
treed03697aad2c3c27127679ce19442f67638150b5e /src/hb-graphite2.cc
parenta280f8312cc9b27515efbab292b95b9d147a2b73 (diff)
downloadharfbuzz-fe65a6a32ba3654c532639ba656bd66b041d7dc6.tar.gz
harfbuzz-fe65a6a32ba3654c532639ba656bd66b041d7dc6.tar.bz2
harfbuzz-fe65a6a32ba3654c532639ba656bd66b041d7dc6.zip
Imported Upstream version 2.6.7upstream/2.6.7
Diffstat (limited to 'src/hb-graphite2.cc')
-rw-r--r--src/hb-graphite2.cc18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc
index f0f2f8c..d8a72dc 100644
--- a/src/hb-graphite2.cc
+++ b/src/hb-graphite2.cc
@@ -45,7 +45,11 @@
* @short_description: Graphite2 integration
* @include: hb-graphite2.h
*
- * Functions for using HarfBuzz with the Graphite2 fonts.
+ * Functions for using HarfBuzz with fonts that include Graphite features.
+ *
+ * For Graphite features to work, you must be sure that HarfBuzz was compiled
+ * with the `graphite2` shaping engine enabled. Currently, the default is to
+ * not enable `graphite2` shaping.
**/
@@ -152,7 +156,15 @@ _hb_graphite2_shaper_face_data_destroy (hb_graphite2_face_data_t *data)
free (data);
}
-/*
+/**
+ * hb_graphite2_face_get_gr_face:
+ * @face: @hb_face_t to query
+ *
+ * Fetches the Graphite2 gr_face corresponding to the specified
+ * #hb_face_t face object.
+ *
+ * Return value: the gr_face found
+ *
* Since: 0.9.10
*/
gr_face *
@@ -376,7 +388,7 @@ _hb_graphite2_shape (hb_shape_plan_t *shape_plan HB_UNUSED,
buffer->len = glyph_count;
/* Positioning. */
- unsigned int currclus = (unsigned int) -1;
+ unsigned int currclus = UINT_MAX;
const hb_glyph_info_t *info = buffer->info;
hb_glyph_position_t *pPos = hb_buffer_get_glyph_positions (buffer, nullptr);
if (!HB_DIRECTION_IS_BACKWARD(buffer->props.direction))