File: pango-1-56-2.patch

package info (click to toggle)
lua-lgi 0.9.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,388 kB
  • sloc: ansic: 5,082; makefile: 169; sh: 31
file content (18 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Chris Hofstaedtler <zeha@debian.org>
Bug: https://github.com/lgi-devs/lgi/issues/336
Bug-Debian: https://bugs.debian.org/1101238
Forwarded: https://github.com/lgi-devs/lgi/pull/342
Description: Adapt to new Pango 1.56.2 bindings

--- a/tests/pango.lua
+++ b/tests/pango.lua
@@ -35,8 +35,7 @@
       local offset = items[i].offset
       local length = items[i].length
       local analysis = items[i].analysis
-      local pgs = Pango.GlyphString()
-      Pango.shape(string.sub(s,1+offset), length, analysis, pgs)
+      pgs = Pango.shape(string.sub(s,1+offset), length, analysis)
       -- Pull out individual glyphs with pgs.glyphs
       local glyphs = pgs.glyphs
       check(type(glyphs) == 'table')