Comments (15)
https://bugzilla.gnome.org/show_bug.cgi?id=784021
IMHO we should just patch the Pango .gir file instead of adding configuration. Configuration only makes sense for things that can't be expressed by the .gir file.
from pango.
Then let's close it. :)
from pango.
It's part of the things we need to improve. However I was certain that we removed the next argument if it was an integer and the current one was a string. Did I miss something @EPashkin?
from pango.
I can't see any code in GIR
that would do that, but I might be looking for the wrong thing.
I can see that CssProvider.load_from_data()
is implemented manually in order to hide its length
parameter. Would it be appropriate to do something similar here, or is a generic solution in GIR
preferable? I'd be happy to have a go at fixing this in either case.
from pango.
It still under construction gtk-rs/gir#376
I think we accept manual version until issue fixed.
from pango.
I see gtk-rs/gir#376 is in progress, so I think it's fine to wait for it to be done automatically.
from pango.
This is not covered unfortunately because the array-length annotation is missing in Pango. Someone should file a bug in Bugzilla to get this added, or I'll do it if nobody else is faster.
from pango.
Maybe we need add config override for array-length?
from pango.
That would make sense (and is relatively simple), yes. Nonetheless all these things should be reported to the respective C libraries.
from pango.
Currently we strong against patching .gir files as it will be replaced by next update.
Or we need patching mechanism that works good with xml files.
from pango.
Next upstream release would ideally have these changes so no patching would be needed after an update.
from pango.
Maybe but I don't want look change in big xml and think, fixed it actually or not :(
from pango.
The changes between versions are not actually very big usually, unless you skip many major versions. When doing GStreamer releases, I usually go through the diff of the .gir files and it was a manageable task so far. Usually there are not many changes/additions to already existing types.
Problem I see with a configuration is that it "makes lazy", and then the annotations are never fixed in the C libraries and every binding ships its own configuration around for these bugs.
from pango.
See gtk-rs/gir#387 (comment) . Needs manual bindings for these functions that take a string+length, or return a string+length
from pango.
🎉 It looks like this is fixed in the latest pango
release: LayoutExt::set_text(&str)
from pango.
Related Issues (12)
- Pango::Language::get_sample_string() SIGSEGVing
- Missing bindings for PangoGravity functions HOT 3
- Update pango bindings HOT 6
- need an enum for the PangoScale values HOT 6
- Does not include cairo backend rendering. HOT 7
- Relicense under dual MIT/Apache-2.0 HOT 11
- Remove the Option return type for all types creation HOT 2
- Incorrect implementation of Layout::xy_to_index
- Support pango_itemize API HOT 5
- PangoAttribute support HOT 17
- Add text style attributes support HOT 4
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 pango.