From 292545e94970319545d1a2d8a5ebb700ade67565 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 16 Aug 2006 04:45:54 +0000 Subject: Remove redundant positioning block! 2006-08-16 Behdad Esfahbod * modules/basic/basic-fc.c (fallback_shape): Remove redundant positioning block! --- ChangeLog | 5 +++++ modules/basic/basic-fc.c | 17 ----------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index 78b5c9e3..c2c512d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-08-16 Behdad Esfahbod + + * modules/basic/basic-fc.c (fallback_shape): Remove redundant + positioning block! + 2006-08-15 Behdad Esfahbod * pango/pango-layout.c (pango_layout_run_get_extents): diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c index dcf93761..3551e282 100644 --- a/modules/basic/basic-fc.c +++ b/modules/basic/basic-fc.c @@ -207,23 +207,6 @@ fallback_shape (PangoEngineShape *engine, p = g_utf8_next_char (p); } - /* Apply default positioning */ - for (i = 0; i < glyphs->num_glyphs; i++) - { - if (glyphs->glyphs[i].glyph) - { - PangoRectangle logical_rect; - - pango_font_get_glyph_extents (font, glyphs->glyphs[i].glyph, NULL, &logical_rect); - glyphs->glyphs[i].geometry.width = logical_rect.width; - } - else - glyphs->glyphs[i].geometry.width = 0; - - glyphs->glyphs[i].geometry.x_offset = 0; - glyphs->glyphs[i].geometry.y_offset = 0; - } - if (analysis->level % 2 != 0) { /* Swap all glyphs */ -- cgit v1.2.1