提交 b52fbb1b 编写于 作者: B Behdad Esfahbod

[gdef] Implement getting contour point

上级 4c5fbae0
...@@ -115,7 +115,10 @@ struct CaretValueFormat2 ...@@ -115,7 +115,10 @@ struct CaretValueFormat2
private: private:
inline int get_caret_value (hb_ot_layout_context_t *context, hb_codepoint_t glyph_id) const 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) { inline bool sanitize (SANITIZE_ARG_DEF) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册