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
41
votes
1 answer

How to create a letter spacing attribute with pycairo?

I'm using Pango + Cairo (through GObject) to render text with python3.7, and would like to set the letter spacing by creating an attribute and attaching that attribute to my pango layout. In the gnome documentation for pango, I can see that there…
RasmusWL
  • 1,573
  • 13
  • 26
20
votes
5 answers

Pango-WARNING **: failed to choose a font, expect ugly output

I'm getting this error when starting anything that uses the Pango library. I'm using Kubuntu 9.10. I've done 'sudo apt-get --reinstall install' on libgtk* libcairo* libpango* and fontconfig, with no luck. Could someone point me in the right…
Andrew
  • 201
  • 1
  • 2
  • 4
19
votes
2 answers

Difference between GtkWindow and GdkWindow?

At the beginning of my Gtk-Gdk-Cairo-Pango app, I create the window: GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); First, there is GtkWindow, but gtk_create_window returns GtkWidget, not GtkWindow, why? Then, some functions, like…
exebook
  • 32,014
  • 33
  • 141
  • 226
17
votes
2 answers

Non-ASCII symbols in translation of GTK-GUI in Windows not working?

I have a small python program that shows how to do translations of GTK (pygobject) GUIs for Linux and Windows. Everything works in Linux, but in Windows non-ASCII symbols are not rendered in the translation. I assume that the both the Glade file and…
tobias47n9e
  • 2,233
  • 3
  • 28
  • 54
17
votes
2 answers

Building Pango with Cairo support

I'm attempting to build a new version of wireshark 1.10 on a RHEL5 box with the intent of making an RPM so that customers that I support can install it. Possibly others if I can find a place to host it. WS1.10 depends on GTK+ as well as several…
Thomas Lann
  • 1,124
  • 5
  • 17
  • 35
14
votes
1 answer

Libtool think that a "library was moved" but it isn't the case

I am currently recompiling gtk+ and dependencies from source (I have no other choices). All my custom packages are installed in a specific custom point (let's call it /packages) (it can seem odd but this time again, I have no other choices). When I…
ThR37
  • 3,965
  • 6
  • 35
  • 42
13
votes
3 answers

Word wrapping in pango with mixed scripts

I have a text box implementation that uses pango. If i put a string that starts with a word in right-to-left script, followed by a space, followed by word in left-to-right based script, the word wrapping that pango uses gets messed up (using…
default
  • 2,637
  • 21
  • 44
13
votes
3 answers

How to escape characters in Pango markup?

My program has a gtk.TreeView which displays a gtk.ListStore. The gtk.ListStore contains strings like this: ""+site_title+""+"\n"+URL Where URL is (obviously) a URL string. Sometimes there are characters in URL…
Isaiah
  • 4,201
  • 4
  • 27
  • 40
11
votes
3 answers

Gnuplot PDF Terminal Exhibits Font Issues on Mac

Out of the blue, my Gnuplot has started having issues with the pdfcairo terminal. The font in the produced PDF files is jammed as if the width of the individual characters was set to zero. I am using Gnuplot 5.2.7 on Mac OS, installed via…
alexurba
  • 1,674
  • 18
  • 13
10
votes
0 answers

Looking for an OSD supporting align attribute, multiple span or div elements, multiple columns

Please let me know if there is an OSD on-screen-display program or techinque for Xorg/Linux platform which can render XML in a much richer way than pango, at least support align attribute, and multiple span or div elements, so it can display…
Sharad
  • 437
  • 1
  • 5
  • 17
9
votes
2 answers

pango attributes with pygobject

I have the following code, that uses pygtk: attr = pango.AttrList() attr.change(pango.AttrSize(( 50 * window_height / 100) * 1000, 0, -1)) attr.change(pango.AttrFamily("Sans", 0, -1)) attr.change(pango.AttrWeight(pango.WEIGHT_BOLD, 0,…
Marco Biscaro
  • 1,208
  • 10
  • 17
9
votes
3 answers

How to fix degree symbol not showing correctly in R on Linux/Fedora 31

Any map I make with: ggplot() + geom_sf() produces the expected map, but does not show the degree sign correctly, as appears from the following picture. The answer given in this answer on SO - degree symbol incorrect in map axis labels - does…
giocomai
  • 3,043
  • 21
  • 24
9
votes
1 answer

What is a simple example of using Pango to render text into an image using a FreeType font?

I want to render text using Pango, but I can't find example code that does not use Cairo. Can someone give me a simple example of Pango usage with a FreeType backend? This is how I think it should roughly work, but as you can see in the code, there…
thejh
  • 44,854
  • 16
  • 96
  • 107
8
votes
2 answers

Working around a big memory leak in GTK when redrawing a label

I'm using the latest release of the PyGTK All-in-One installer (2.24.2) for Python 2.7 which includes Cairo 1.10.8, Pango 1.29.4, PyGTK 2.24.0, and PyGobject 2.28.3 (I think). The following code leaks ~55 MB of memory: import gtk window =…
Steven T. Snyder
  • 5,847
  • 4
  • 27
  • 58
7
votes
2 answers

Graphviz - Could not load gvplugin_pango.dll

I'm attempting to run graphviz as a library from CLion in Windows. It's taken me quite a while to get this far and I hope this is the final hurdle. When I run the program I see the following warning and no graph Warning: Could not load "C:\Program…
LiamRyan
  • 1,892
  • 4
  • 32
  • 61
1
2 3
15 16