Code Monkey home page Code Monkey logo

Comments (2)

takluyver avatar takluyver commented on July 21, 2024

My first attempt at porting got stuck on some parts of pango that aren't yet exposed through the bindings - specifically, the means to create and combine Pango 'attributes', which represent a font style option (such as bold) together with the span of text to which it should be applied.

This code in Pitivi works around something similar, and I exchanged emails with the author of that bit, Matas Brazdeikis. But I couldn't get it working within Labyrinth.

Potential ways out:

  • Pango can expose the necessary bits to introspection in future versions (see e.g. this bug)
  • Matas may be able to look more closely at our code at some point.
  • There may be another way of coding without directly controlling pango. But even if there is, I've no idea what it might be.

from labyrinth.

takluyver avatar takluyver commented on July 21, 2024

The GObject introspection interface to Pango has improved somewhat, and I was able to get a bit further. I also started making it Python 3 compatible, because that was easier than getting the bindings set up on Python 2 again.

However, I'm stuck - for now - on another limitation of the Pango introspection API: https://gitlab.gnome.org/GNOME/pango/-/issues/476 . Specifically, it fails on a line like this:

pango_font = x.desc

from labyrinth.

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.