[pango/baseline-handling] renderer: Drop handling of centered baselines
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/baseline-handling] renderer: Drop handling of centered baselines
- Date: Wed, 16 Feb 2022 20:06:08 +0000 (UTC)
commit 096b121b6e858170d7a7860ced3b19a2c5cc1cfc
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 16 14:04:02 2022 -0600
renderer: Drop handling of centered baselines
This will be handled just like other baselines
now.
pango/pango-renderer.c | 15 ---------------
1 file changed, 15 deletions(-)
---
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 311c28cd..c11053f4 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -613,9 +613,6 @@ pango_renderer_draw_layout_line (PangoRenderer *renderer,
PangoRectangle logical_rect, *logical = NULL;
int y_off;
- if (run->item->analysis.flags & PANGO_ANALYSIS_FLAG_CENTERED_BASELINE)
- logical = &logical_rect;
-
pango_renderer_prepare_run (renderer, run);
get_item_properties (run->item, &shape_attr);
@@ -654,18 +651,6 @@ pango_renderer_draw_layout_line (PangoRenderer *renderer,
x_off += run->start_x_offset;
y_off = run->y_offset;
- if (run->item->analysis.flags & PANGO_ANALYSIS_FLAG_CENTERED_BASELINE)
- {
- gboolean is_hinted = ((logical_rect.y | logical_rect.height) & (PANGO_SCALE - 1)) == 0;
- int adjustment = logical_rect.y + logical_rect.height / 2;
-
- if (is_hinted)
- adjustment = PANGO_UNITS_ROUND (adjustment);
-
- y_off += adjustment;
- }
-
-
if (renderer->priv->color_set[PANGO_RENDER_PART_BACKGROUND])
{
if (!got_overall)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]