summaryrefslogtreecommitdiff
path: root/gtk/gskpango.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-07-03 23:17:41 +0200
committerBenjamin Otte <otte@redhat.com>2018-07-04 06:15:33 +0200
commitfba0b359d48493efc19dab5d35926f5e55e4c9d5 (patch)
treec7b56759834462611e903c80e87e414ae3d5c5ff /gtk/gskpango.c
parente1b6496af760d4b93a2a17c80816dc1a3348b97c (diff)
downloadgtk+-fba0b359d48493efc19dab5d35926f5e55e4c9d5.tar.gz
css: Report sizes as absolute
All PangoFontDescriptions that GTK creates now use pango_font_description_set_absolute_size().
Diffstat (limited to 'gtk/gskpango.c')
-rw-r--r--gtk/gskpango.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gskpango.c b/gtk/gskpango.c
index 20bff5e9c2..ae4a6a81fe 100644
--- a/gtk/gskpango.c
+++ b/gtk/gskpango.c
@@ -127,10 +127,10 @@ gsk_pango_renderer_show_text_glyphs (PangoRenderer *renderer,
return;
graphene_rect_init (&node_bounds,
- (float)x/PANGO_SCALE,
- (float)y/PANGO_SCALE + ink_rect.y,
- ink_rect.x + ink_rect.width,
- ink_rect.height);
+ (float)x/PANGO_SCALE - 1.0,
+ (float)y/PANGO_SCALE + ink_rect.y - 1.0,
+ ink_rect.x + ink_rect.width + 2.0,
+ ink_rect.height + 2.0);
gtk_snapshot_get_offset (crenderer->snapshot, &x_offset, &y_offset);
graphene_rect_offset (&node_bounds, x_offset, y_offset);