PangoRectangle strong;
PangoRectangle weak;
pango_layout_get_cursor_pos(pango_layout, strlen("あい"), &strong, &weak);
cairo_line_to(cairo_context, strong.x/PANGO_SCALE, strong.y/PANGO_SCALE);
cairo_rel_line_to(cairo_context, 0, strong.height/PANGO_SCALE);
cairo_stroke(cairo_context);
沒有留言:
張貼留言