0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.861

Problem:    pango_shape_full() is not always available.
Solution:   Add a configure check.
This commit is contained in:
Bram Moolenaar
2015-09-08 20:00:22 +02:00
parent a122b5e98a
commit 3cbe0c01ad
5 changed files with 57 additions and 0 deletions

View File

@@ -5063,8 +5063,13 @@ not_ascii:
* done, because drawing the cursor would change the display. */
item->analysis.shape_engine = default_shape_engine;
#ifdef HAVE_PANGO_SHAPE_FULL
pango_shape_full((const char *)s + item->offset, item->length,
(const char *)s, len, &item->analysis, glyphs);
#else
pango_shape((const char *)s + item->offset, item->length,
&item->analysis, glyphs);
#endif
/*
* Fixed-width hack: iterate over the array and assign a fixed
* width to each glyph, thus overriding the choice made by the