diff options
| author | Khaled Hosny | 2018-06-05 15:59:39 +0200 |
|---|---|---|
| committer | Khaled Hosny | 2018-12-10 00:08:50 +0200 |
| commit | 68e675d5cfb3d5b1dcf6b82691663a0f4c157a3a (patch) | |
| tree | 8625f4acfea0413c663dc931b4922f9d86d496f1 /src/ftfont.c | |
| parent | ca0b6e90f8a943825b728d00c60456bc55d42a25 (diff) | |
| download | emacs-68e675d5cfb3d5b1dcf6b82691663a0f4c157a3a.tar.gz emacs-68e675d5cfb3d5b1dcf6b82691663a0f4c157a3a.zip | |
Set cluster level to one
Makes to possible to edit combining marks separately as now they get a
different cluster value from the base glyph.
Diffstat (limited to 'src/ftfont.c')
| -rw-r--r-- | src/ftfont.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 0990e84ddab..260f259615a 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -2717,6 +2717,7 @@ ftfont_shape_by_hb (Lisp_Object lgstring, FT_Face ft_face, hb_font_t *hb_font, | |||
| 2717 | goto done; | 2717 | goto done; |
| 2718 | 2718 | ||
| 2719 | hb_buffer_set_content_type (hb_buffer, HB_BUFFER_CONTENT_TYPE_UNICODE); | 2719 | hb_buffer_set_content_type (hb_buffer, HB_BUFFER_CONTENT_TYPE_UNICODE); |
| 2720 | hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS); | ||
| 2720 | 2721 | ||
| 2721 | /* FIXME: guess_segment_properties is BAD BAD BAD. | 2722 | /* FIXME: guess_segment_properties is BAD BAD BAD. |
| 2722 | * we need to get these properties with the LGSTRING. */ | 2723 | * we need to get these properties with the LGSTRING. */ |