Skip to content

Instantly share code, notes, and snippets.

@luchr
luchr / first_events.png
Last active February 21, 2017 23:47
vim issue 848 logs and infos
first_events.png
--- vim74/src/gui_gtk_x11.c.orig 2015-09-07 16:19:44.054802201 +0200
+++ vim74/src/gui_gtk_x11.c 2015-09-07 16:20:05.803460620 +0200
@@ -5063,8 +5063,8 @@
* done, because drawing the cursor would change the display. */
item->analysis.shape_engine = default_shape_engine;
- pango_shape((const char *)s + item->offset, item->length,
- &item->analysis, glyphs);
+ pango_shape_full((const char *)s + item->offset, item->length,
+ (const char *)s, len, &item->analysis, glyphs);
/*
* Example: In some fonts (e.g. Ubuntu Mono) if you render a combining
* code point (e.g. U+0301) without a preceding code point
* then U+25CC is used as preceding code point.
*
* Compile and Link with
* gcc $( pkg-config --cflags --libs pangocairo ) -o test1 test1.c
*/
#include <cairo.h>
#include <pango/pangocairo.h>