summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-08-02 14:30:42 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-08-02 14:30:42 +0000
commitbcf10a1085bdf9344e513785c1082f9b82278619 (patch)
tree8060bace8d1366f4fa92a9bae98f84d6893156d3 /modules
parent537660728317118a8c2bd1940b2607ccf0f036ba (diff)
downloadpango-bcf10a1085bdf9344e513785c1082f9b82278619.tar.gz
Add API to kern a complete glyph string. Remove API to kern individual
Sat Aug 2 16:40:19 2003 Soeren Sandmann <sandmann@daimi.au.dk> Add API to kern a complete glyph string. Remove API to kern individual glyph pairs. * modules/basic/basic-fc.c (basic_engine_shape): use pango_fc_font_kern_glyphs() instead of pango_fc_font_get_kerning(). * pango/pangoft2.c (pango_ft2_font_real_kern_glyphs): add this function, remove pango_ft2_font_real_get_kerning(). * pango/pangoxft-font.c (pango_xft_font_real_kern_glyphs): add this function, remove pango_xft_font_real_get_kerning(). * pango/pangofc-font.c (pango_fc_font_kern_glyphs): new function. Remove pango_fc_font_get_kerning(). * pango/pangofc-font.h: remove pango_fc_font_get_kerning(), add pango_fc_font_kern_glyphs().
Diffstat (limited to 'modules')
-rw-r--r--modules/basic/basic-fc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index c9d64c9e..99e8c361 100644
--- a/modules/basic/basic-fc.c
+++ b/modules/basic/basic-fc.c
@@ -118,12 +118,6 @@ set_glyph (PangoFont *font,
pango_font_get_glyph_extents (font, glyphs->glyphs[i].glyph, NULL, &logical_rect);
glyphs->glyphs[i].geometry.width = logical_rect.width;
-
- if (i > 0)
- glyphs->glyphs[i-1].geometry.width +=
- pango_fc_font_get_kerning ((PangoFcFont *)font,
- glyphs->glyphs[i-1].glyph,
- glyphs->glyphs[i].glyph);
}
static void
@@ -228,7 +222,9 @@ basic_engine_shape (PangoFont *font,
start = end;
}
}
-
+
+ pango_fc_font_kern_glyphs (fc_font, glyphs);
+
pango_fc_font_unlock_face (fc_font);
}