ba0caa
From 31e726d939e7b79506d11164d259c9789e429761 Mon Sep 17 00:00:00 2001
ba0caa
From: Behdad Esfahbod <behdad@behdad.org>
ba0caa
Date: Fri, 20 Sep 2013 07:20:53 +0200
ba0caa
Subject: [PATCH] Fix vertical size of emboldened glyphs.
ba0caa
ba0caa
Cf. https://bugzilla.gnome.org/show_bug.cgi?id=686709
ba0caa
ba0caa
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Adjust `horiBearingY'
ba0caa
also.
ba0caa
---
ba0caa
 src/base/ftsynth.c | 11 ++++++-----
ba0caa
 1 files changed, 6 insertions(+), 5 deletions(-)
ba0caa
ba0caa
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c
ba0caa
index 241d37f..3098a60 100644
ba0caa
--- a/src/base/ftsynth.c
ba0caa
+++ b/src/base/ftsynth.c
ba0caa
@@ -4,7 +4,7 @@
ba0caa
 /*                                                                         */
ba0caa
 /*    FreeType synthesizing code for emboldening and slanting (body).      */
ba0caa
 /*                                                                         */
ba0caa
-/*  Copyright 2000-2006, 2010, 2012 by                                     */
ba0caa
+/*  Copyright 2000-2006, 2010, 2012, 2013 by                               */
ba0caa
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
ba0caa
 /*                                                                         */
ba0caa
 /*  This file is part of the FreeType project, and may only be used,       */
ba0caa
@@ -139,10 +139,11 @@
ba0caa
     if ( slot->advance.y )
ba0caa
       slot->advance.y += ystr;
ba0caa
 
ba0caa
-    slot->metrics.width       += xstr;
ba0caa
-    slot->metrics.height      += ystr;
ba0caa
-    slot->metrics.horiAdvance += xstr;
ba0caa
-    slot->metrics.vertAdvance += ystr;
ba0caa
+    slot->metrics.width        += xstr;
ba0caa
+    slot->metrics.height       += ystr;
ba0caa
+    slot->metrics.horiAdvance  += xstr;
ba0caa
+    slot->metrics.vertAdvance  += ystr;
ba0caa
+    slot->metrics.horiBearingY += ystr;
ba0caa
 
ba0caa
     /* XXX: 16-bit overflow case must be excluded before here */
ba0caa
     if ( slot->format == FT_GLYPH_FORMAT_BITMAP )
ba0caa
-- 
ba0caa
1.8.3.1
ba0caa