Comments (6)
Confirmed. GI in general is definitely not good at introspecting anything but simplest struct fields, and arrays are definitely not supported. However, lgi contains infrastructure to create override to access this case, so I'll add it.
from lgi.
It was easier than anticipated. Please test it and reopen if you find any problems.
Many thanks for concise report including the sample! I took your sample and added it into lgi testsuite, I hope that you have no problem with it.
from lgi.
Thank you, that works and I'm very happy!
from lgi.
...although, cr:show_glyph_string(analysis.font, pgs)
doesn't seem to display anything, even though the equivalent C code does.
from lgi.
Bummer. However, I tried just calling cr:show_glyph_string(analysis.font, pgs) and verified in debugger that all arguments passed to pango_cairo_show_glyphs_string() C implementation look correct to me and no error is signalized. I somehow suspect that there is something else going wrong with the sample, but sorry, I'm not going to delve into pango/cairo stuff. If you will be able to come up with some small selfcontained example, I'll gladly try to debug it.
from lgi.
Ignore me. I'm an idiot. pal:insert(pango.Attribute.size_new(12))
prints the text at a size of 12 1/1024ths of a point, so I couldn't really see it.
from lgi.
Related Issues (20)
- Does lgi support Gtk4? HOT 24
- How to emit signals on an object HOT 26
- GVariant dictionnaries returned from GDBus method calls and signals are empty HOT 4
- Errors in callbacks don't terminate the loop HOT 4
- Segmentation fault in Gio.File.copy_async HOT 7
- API reference such as https://lazka.github.io/pgi-docs/? HOT 2
- Misaligned memory accesses in marshal_2c_int and marshal_2lua_int HOT 2
- Building in Windows with meson is looking for luajit-5.1.lib HOT 3
- GtkContainer.child SIGSEGVs on access HOT 5
- How to connect signal on derived class of GstBin? HOT 5
- Segmentation fault when using netwok manager HOT 1
- Segmentation fault when using upower and playerctl interfaces HOT 1
- push to luarocks HOT 14
- Fails to install on fedora 36, Lua 5.4-1 HOT 5
- install error HOT 3
- _resolve can cause luajit to segmentation fault
- Cannot import Glib HOT 1
- Makefile doesn't work on systems with multiple lua versions? HOT 5
- `GLib.Variant: no 'n'` when using `GLib.Variant("(av)", ...)`
- Cairo Native Interop? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgi.