Questions tagged [pango]

Pango is a C API for Unicode-based text layout and rendering.

Pango allows advanced layout of text using C, C++, Perl, and a number of other languages. It is primarily used with (), although it can be used with other backends, such as Win32 API, Xft, and others.

The website is http://pango.org.

Documentation can be found at https://developer.gnome.org/pango/unstable/.

228 questions
0
votes
1 answer

How do I use Pango.AttrType.FOREGROUND in Python and Gtk3?

I am replacing some PyGtk code that looks like this : pango.AttrForeground(65535, 0, 0, 0, 100) Translating that to Gtk3 looks like this : Pango.AttrType.FOREGROUND(65535, 0, 0, 0, 100) However I get the error TypeError: 'AttrType' object is not…
theGtknerd
  • 3,647
  • 1
  • 13
  • 34
0
votes
1 answer

Pango Import is not working

I am very new into this python and its dependencies. I'm trying to install Cairo and Pango, I have successfully installed Cairo, Cairocffi, cffi, Pygi, and gtk+, and they are working just fine. I have tried many ways for the past three days to set…
0
votes
1 answer

Getting text bounds in GTK+

How can I get bounds of a text, provided string with attributes say, font size, font style, and font family in GTK+?
boom
  • 5,856
  • 24
  • 61
  • 96
0
votes
1 answer

Imagick pango issue arabic text

When I use this function to generate arabic text: $img = new Imagick(); $img->setBackgroundColor(new ImagickPixel('white')); $text = ' ولكن النا'; //Pango code for Hello World! $img->newPseudoImage(200, 200,…
watb
  • 81
  • 6
0
votes
1 answer

-package Cabal-1.8.0.6 breaks pango installation on Mac

When installing Haskell pango on mac (sudo cabal install pango), the first problem is that it tries to install packages I've already installed. I've install haskell98 (successfully), but pango tries to install it again, and when the compilation is…
None
  • 3,875
  • 7
  • 43
  • 67
0
votes
1 answer

How to set the alignment, or how to find PyGObject documentation

I am trying to right-align some text content in a CellRenderer. Through several searches I found two approaches, but these do not work. With bold-setting, you need to enable this feature first, so I am guessing I also need to enable alignment…
Roland
  • 4,619
  • 7
  • 49
  • 81
0
votes
1 answer

Why is pango_cairo_show_layout drawing text at a slightly wrong location?

I have a Gtk app written in C running on Ubuntu Linux. I'm confused about some behavior I'm seeing with the pango_cairo_show_layout function: I get the exact "ink" (not "logical") pixel size of a pango layout and draw the layout using…
user2062604
  • 247
  • 3
  • 16
0
votes
0 answers

ruby shoes "illegal instruction" macbook air but not on imac ( ./pango-querymodules?)

Everything going well, building ruby-shoes app on imac. Attempt to dev/run packaged app on my air get illegal instruction. only happens with latest shoes version (federalas). seems to be ok on policeman checked the architecture / file type -…
Ben
  • 1,292
  • 1
  • 13
  • 21
0
votes
2 answers

Adding text to videos using MLT Framework

I am rendering a video using MLT Framework and am not able to successfully add text using the demos that are included in the code. When I execute the mlt_my_name_is demo, I receive the following errors: ./mlt_my_name_is Failed to load "+My name is…
seawolf
  • 2,147
  • 3
  • 20
  • 37
0
votes
0 answers

GTK lebel text wrap for some languages

I am using gtk_label_set_line_wrap on label where text is long and text is in some other language. but in output text wraps and text in first and second line are overlapping for some chars. Any help how i can increase gap between wrapped text…
0
votes
1 answer

Can't install pango on ubuntu

I'm trying to build gtk+1.3 on ubuntu and I'm getting an error during configure, ld: cannot find -lpango I tried installing a ton of pango libraries and its still not installed so I'm not sure what to do. I keep testing it with ld -lpango But…
shwick
  • 4,277
  • 6
  • 21
  • 28
0
votes
1 answer

Pango select multiples fonts

I have three fonts i want to use in my software with pango: Font1: latin, Cryllic characters Font2: Korean characters Font3: Japanese characters Pango render the text correctly but i want select a font There any way to indicate this preference…
Alex
  • 149
  • 2
  • 9
0
votes
1 answer

Setting Pango.FontDescription from a Gtk.FontButton

In my preference dialog I have a Gtk.FontButton for the user to select a font, later I create a new Pango.FontDesciption from the get_font_name () string. The problem is that the size for the font is never set. var font = new Pango.FontDescription…
Ava
  • 2,038
  • 3
  • 23
  • 45
0
votes
1 answer

How Create Image with pango-view and imagemagick?

I have these codes: exec('convert -gravity center pango:@1.txt pango_test.png'); and in my txt file i have some text with persian or arabic language. i tried to create image with imagemagick and nothing... any help please. best regards.
Nastary
  • 345
  • 4
  • 19
0
votes
1 answer

Pango text gets blurring when GL viewport is changed

I am working with a piece of code which was rendering a texture containing text written using Pango, in a particular GL viewport. I have now had to change the viewport, and put the texture at a different z-distance, however, the text has become…
Iceman
  • 4,202
  • 7
  • 26
  • 39