From 5e43089b4f4a1381cf93cad03e25c56ab0b71ab4 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 7 Nov 2006 09:35:03 +0000 Subject: [PATCH] * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout also. --- ChangeLog | 5 +++++ src/base/ftsynth.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 117f4df62..fb06f6ac7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-07 Zhe Su + + * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout + also. + 2006-11-03 Werner Lemberg * src/base/ftcalc.c: Don't use `long long' but `FT_Int64'. diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c index 7ff2a3c38..0b32585e9 100644 --- a/src/base/ftsynth.c +++ b/src/base/ftsynth.c @@ -137,8 +137,11 @@ return; } - /* assume the layout is horizontal */ - slot->advance.x += xstr; + if (slot->advance.x) + slot->advance.x += xstr; + + if (slot->advance.y) + slot->advance.y += ystr; slot->metrics.width += xstr; slot->metrics.height += ystr;