Karsten Hopp dd65d6
To: vim_dev@googlegroups.com
Karsten Hopp dd65d6
Subject: Patch 7.4.855
Karsten Hopp dd65d6
Fcc: outbox
Karsten Hopp dd65d6
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp dd65d6
Mime-Version: 1.0
Karsten Hopp dd65d6
Content-Type: text/plain; charset=UTF-8
Karsten Hopp dd65d6
Content-Transfer-Encoding: 8bit
Karsten Hopp dd65d6
------------
Karsten Hopp dd65d6
Karsten Hopp dd65d6
Patch 7.4.855
Karsten Hopp dd65d6
Problem:    GTK: font glitches for combining characters
Karsten Hopp dd65d6
Solution:   Use pango_shape_full() instead of pango_shape(). (luchr, PR #393)
Karsten Hopp dd65d6
Files:      src/gui_gtk_x11.c
Karsten Hopp dd65d6
Karsten Hopp dd65d6
Karsten Hopp dd65d6
*** ../vim-7.4.854/src/gui_gtk_x11.c	2015-06-09 19:14:18.773373964 +0200
Karsten Hopp dd65d6
--- src/gui_gtk_x11.c	2015-09-08 16:18:51.944711934 +0200
Karsten Hopp dd65d6
***************
Karsten Hopp dd65d6
*** 5063,5070 ****
Karsten Hopp dd65d6
  	     * done, because drawing the cursor would change the display. */
Karsten Hopp dd65d6
  	    item->analysis.shape_engine = default_shape_engine;
Karsten Hopp dd65d6
  
Karsten Hopp dd65d6
! 	    pango_shape((const char *)s + item->offset, item->length,
Karsten Hopp dd65d6
! 			&item->analysis, glyphs);
Karsten Hopp dd65d6
  	    /*
Karsten Hopp dd65d6
  	     * Fixed-width hack: iterate over the array and assign a fixed
Karsten Hopp dd65d6
  	     * width to each glyph, thus overriding the choice made by the
Karsten Hopp dd65d6
--- 5063,5070 ----
Karsten Hopp dd65d6
  	     * done, because drawing the cursor would change the display. */
Karsten Hopp dd65d6
  	    item->analysis.shape_engine = default_shape_engine;
Karsten Hopp dd65d6
  
Karsten Hopp dd65d6
! 	    pango_shape_full((const char *)s + item->offset, item->length,
Karsten Hopp dd65d6
! 		    (const char *)s, len, &item->analysis, glyphs);
Karsten Hopp dd65d6
  	    /*
Karsten Hopp dd65d6
  	     * Fixed-width hack: iterate over the array and assign a fixed
Karsten Hopp dd65d6
  	     * width to each glyph, thus overriding the choice made by the
Karsten Hopp dd65d6
*** ../vim-7.4.854/src/version.c	2015-09-01 21:25:38.845874761 +0200
Karsten Hopp dd65d6
--- src/version.c	2015-09-08 16:28:14.186863672 +0200
Karsten Hopp dd65d6
***************
Karsten Hopp dd65d6
*** 743,744 ****
Karsten Hopp dd65d6
--- 743,746 ----
Karsten Hopp dd65d6
  {   /* Add new patch number below this line */
Karsten Hopp dd65d6
+ /**/
Karsten Hopp dd65d6
+     855,
Karsten Hopp dd65d6
  /**/
Karsten Hopp dd65d6
Karsten Hopp dd65d6
-- 
Karsten Hopp dd65d6
CART DRIVER: Bring out your dead!
Karsten Hopp dd65d6
LARGE MAN:   Here's one!
Karsten Hopp dd65d6
CART DRIVER: Ninepence.
Karsten Hopp dd65d6
BODY:        I'm not dead!
Karsten Hopp dd65d6
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp dd65d6
Karsten Hopp dd65d6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp dd65d6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp dd65d6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp dd65d6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///