[arch-general] python+pango
Hello all, Is there a python3 module for pango (as there is one for cairo) ? pacman -Ss pango gives me: extra/libtiger 0.3.4-3 A rendering library for Kate streams using Pango and Cairo extra/pango 1.32.3-1 [installed: 1.30.1-1] A library for layout and rendering of text extra/pango-perl 1.223-2 Perl bindings for Pango extra/pangomm 2.28.4-1 [installed] C++ bindings for pango extra/pangomm-docs 2.28.4-1 Developer documentation for pangomm extra/pangox-compat 0.0.2-1 X Window System font support for Pango extra/sdl_pango 0.1.2-4 Pango SDL binding community/haskell-pango 0.12.4-1 Binding to the pango library for Gtk2Hs. community/ruby-pango 1.1.5-1 Ruby bindings for pango so it looks like the answer is no... Yet there are examples on the web, e.g.: http://cairographics.org/pycairo_pango/ ?? -- FA A world of exhaustive, reliable metadata would be an utopia. It's also a pipe-dream, founded on self-delusion, nerd hubris and hysterically inflated market opportunities. (Cory Doctorow)
On Mon, Dec 10, 2012 at 5:23 PM, Fons Adriaensen <fons@linuxaudio.org> wrote:
Hello all,
Is there a python3 module for pango (as there is one for cairo) ?
pacman -Ss pango gives me:
extra/libtiger 0.3.4-3 A rendering library for Kate streams using Pango and Cairo extra/pango 1.32.3-1 [installed: 1.30.1-1] A library for layout and rendering of text extra/pango-perl 1.223-2 Perl bindings for Pango extra/pangomm 2.28.4-1 [installed] C++ bindings for pango extra/pangomm-docs 2.28.4-1 Developer documentation for pangomm extra/pangox-compat 0.0.2-1 X Window System font support for Pango extra/sdl_pango 0.1.2-4 Pango SDL binding community/haskell-pango 0.12.4-1 Binding to the pango library for Gtk2Hs. community/ruby-pango 1.1.5-1 Ruby bindings for pango
so it looks like the answer is no...
Yet there are examples on the web, e.g.:
http://cairographics.org/pycairo_pango/
??
-- FA
A world of exhaustive, reliable metadata would be an utopia. It's also a pipe-dream, founded on self-delusion, nerd hubris and hysterically inflated market opportunities. (Cory Doctorow)
All you need is python-gobject and you have bindings for all modern gobject libraries. The C libraries are just used directly with introspection for types. For example, you an use `from gi.repository import Pango` for pango and it's the same for Gtk, Vte, etc. (bindings like pygtk are dead ends now).
participants (2)
-
Daniel Micay
-
Fons Adriaensen