summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-04-29 03:47:00 -0400
committerBehdad Esfahbod <behdad@behdad.org>2010-04-29 03:47:00 -0400
commitb52fbb1bab608bda76efb936f08344afaec600a1 (patch)
treebe2261119a63f33952d2bd4bef9d41d872a9c973
parent4c5fbae011a33b9efef5aedd61c357fc0ded1113 (diff)
[gdef] Implement getting contour point
-rw-r--r--src/hb-ot-layout-gdef-private.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hb-ot-layout-gdef-private.hh b/src/hb-ot-layout-gdef-private.hh
index 14bef8c..46d40ba 100644
--- a/src/hb-ot-layout-gdef-private.hh
+++ b/src/hb-ot-layout-gdef-private.hh
@@ -115,7 +115,10 @@ struct CaretValueFormat2
private:
inline int get_caret_value (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id) const
{
- return /* TODO contour point */ 0;
+ /* TODO vertical */
+ hb_position_t x = 0, y = 0;
+ hb_font_get_contour_point (context->font, context->face, caretValuePoint, glyph_id, &x, &y);
+ return x;
}
inline bool sanitize (SANITIZE_ARG_DEF) {