summaryrefslogtreecommitdiff
path: root/x11-libs/pango/files/1.50.7-harfbuzz-4.patch
blob: 91598f9969e52493d80fe37833bacdcd6b379b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
https://gitlab.gnome.org/GNOME/pango/-/commit/0226bdd9c223f5651b6657a14cebc900bbac4b19
https://bugs.gentoo.org/836317

Fixes tests with Harfbuzz 4.0.0 ish.

From: Matthias Clasen <mclasen@redhat.com>
Date: Fri, 10 Jun 2022 08:00:22 -0400
Subject: [PATCH] Update tests to pass on F36

Rounding differences are our downfall :(
--- a/tests/layouts/valid-14.layout
+++ b/tests/layouts/valid-14.layout
@@ -25,7 +25,7 @@
     "is-ellipsized" : true,
     "unknown-glyphs" : 1,
     "width" : 161792,
-    "height" : 20480,
+    "height" : 21047,
     "log-attrs" : [
       {
         "char-break" : true,
@@ -261,7 +261,7 @@
               ]
             },
             "flags" : 0,
-            "y-offset" : 0,
+            "y-offset" : 567,
             "start-x-offset" : 0,
             "end-x-offset" : 0,
             "glyphs" : [
@@ -360,7 +360,7 @@
               ]
             },
             "flags" : 0,
-            "y-offset" : 0,
+            "y-offset" : 337,
             "start-x-offset" : 0,
             "end-x-offset" : 0,
             "glyphs" : [
--- a/tests/layouts/valid-20.layout
+++ b/tests/layouts/valid-20.layout
@@ -40,7 +40,7 @@
     "is-wrapped" : false,
     "is-ellipsized" : false,
     "unknown-glyphs" : 0,
-    "width" : 67584,
+    "width" : 76800,
     "height" : 25600,
     "log-attrs" : [
       {
@@ -138,7 +138,7 @@
             "glyphs" : [
               {
                 "glyph" : 244,
-                "width" : 15360,
+                "width" : 18432,
                 "x-offset" : 14764,
                 "y-offset" : 3845,
                 "is-cluster-start" : true,
@@ -146,7 +146,7 @@
               },
               {
                 "glyph" : 272,
-                "width" : 15360,
+                "width" : 18432,
                 "x-offset" : 14764,
                 "y-offset" : 4280,
                 "is-cluster-start" : true,
@@ -154,7 +154,7 @@
               },
               {
                 "glyph" : 273,
-                "width" : 15360,
+                "width" : 18432,
                 "x-offset" : 14764,
                 "y-offset" : 3507,
                 "is-cluster-start" : true,
GitLab