Code Monkey home page Code Monkey logo

Comments (6)

pavouk avatar pavouk commented on June 8, 2024

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.

pavouk avatar pavouk commented on June 8, 2024

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.

simoncozens avatar simoncozens commented on June 8, 2024

Thank you, that works and I'm very happy!

from lgi.

simoncozens avatar simoncozens commented on June 8, 2024

...although, cr:show_glyph_string(analysis.font, pgs) doesn't seem to display anything, even though the equivalent C code does.

from lgi.

pavouk avatar pavouk commented on June 8, 2024

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.

simoncozens avatar simoncozens commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.