[pango/pango2-color-palette: 31/71] Update userfont example for changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [pango/pango2-color-palette: 31/71] Update userfont example for changes
- Date: Tue,  5 Jul 2022 11:18:29 +0000 (UTC)
commit c38261f05127537437d094946aa7867c83bd6cf5
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 22 16:02:10 2022 -0400
    Update userfont example for changes
 examples/userfont.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/userfont.c b/examples/userfont.c
index 7c35cd5e5..40b472cd0 100644
--- a/examples/userfont.c
+++ b/examples/userfont.c
@@ -130,9 +130,9 @@ glyph_info_cb (PangoUserFace      *face,
   test_scaled_font_glyph_t *glyphs = user_data;
 
   extents->x_bearing = 0;
-  extents->y_bearing = - 0.75 * size;
+  extents->y_bearing = 0.75 * size;
   extents->width = glyphs[glyph].width / 4.0 * size;
-  extents->height = size;
+  extents->height = - size;
 
   *h_advance = *v_advance = glyphs[glyph].width / 4.0 * size;
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]