Comments (2)
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.
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:
labyrinth/labyrinth/TextThought.py
Line 194 in e27b152
from labyrinth.
Related Issues (20)
- Support input method HOT 1
- Windows 8 HOT 8
- crashes on MacOS X possibly due to cairo init_cairo() HOT 4
- import error- no module named GTK HOT 3
- double clicking on an Node to edit it's name Makes the node completely disappear! HOT 1
- ctrl-s to save mutliple times presents 'save as...' dialog each time HOT 15
- selecting nodes takes agggeesss , like 5-6 seconds HOT 1
- Really nice project, but fairly unusable right now HOT 1
- colored nodes would be nice :-) HOT 2
- would be nice if xml was multiline, good for saving to git :-)
- Archlinux-i3wm-Slowdown HOT 3
- can not input chinese. HOT 4
- Ghost nodes HOT 1
- Better linking HOT 1
- Disappearing elements' content HOT 5
- Need to upgrade to use newer GNOME runtime HOT 1
- Suggestions - Dark mode, sidebar, centering map in editor, Python 3 and GTK 4. HOT 2
- "/usr/bin/python: bad interpreter: No such file or directory" HOT 1
- "ValueError: Namespace PangoAttrCast not available" when trying to run Labyrinth (gtk3 branch) HOT 1
- Change font size does not work (change font type neither) HOT 8
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 labyrinth.