]> git.eshelyaron.com Git - emacs.git/commitdiff
Set cluster level to one
authorKhaled Hosny <khaledhosny@eglug.org>
Tue, 5 Jun 2018 13:59:39 +0000 (15:59 +0200)
committerKhaled Hosny <khaledhosny@eglug.org>
Sun, 9 Dec 2018 22:08:50 +0000 (00:08 +0200)
Makes to possible to edit combining marks separately as now they get a
different cluster value from the base glyph.

src/ftfont.c

index 0990e84ddab9cd91bc94b98611f89ffd62162ed0..260f259615a4659029b22d8459b0a13d44648d4a 100644 (file)
@@ -2717,6 +2717,7 @@ ftfont_shape_by_hb (Lisp_Object lgstring, FT_Face ft_face, hb_font_t *hb_font,
     goto done;
 
   hb_buffer_set_content_type (hb_buffer, HB_BUFFER_CONTENT_TYPE_UNICODE);
+  hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
 
   /* FIXME: guess_segment_properties is BAD BAD BAD.
    * we need to get these properties with the LGSTRING. */