pango Questions
3
Solved
My program has a gtk.TreeView which displays a gtk.ListStore. The gtk.ListStore contains strings like this:
"<span size='medium'><b>"+site_title+"</b></span>"+"\n"+URL
W...
1
Solved
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 gn...
3
Solved
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 usi...
3
Solved
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 S...
Wive asked 12/3, 2020 at 14:42
0
Written a markup like this
<span font-desc="Bold 40" foreground="blue" size="x-large">P <b>S</b> </span>
with the help of the following link
The above markup can be fed t...
2
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 tr...
Consignment asked 24/8, 2015 at 12:18
1
According to this documentation, Pango is able to handle some convenience tags like <b> for bold, or <i> for italic.
However, there's nothing for line break, like the commonly used <...
Anglomania asked 2/7, 2019 at 7:57
2
Solved
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 l...
2
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 warnin...
3
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 wr...
Diversified asked 9/12, 2015 at 18:47
2
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...
2
I have a code uses Cairo and Pango to create an image :
#include<stdio.h>
#include<cairo.h>
#include<pango/pangocairo.h>
#define IMAGE_WIDTH 650
#define IMAGE_HEIGHT 150
#defin...
1
Solved
In my application, I am using Pango and Cairo to create text textures. These textures have their width fixed, but should scale their height to fit text contents. The parent objects involved in this...
Dezhnev asked 3/8, 2015 at 13:26
1
Solved
Pango syntax supports some text only markup. As far as i can see this does not extend to embedding images as well.
Looking around I cannot find much in the way of an existing implementation, but i...
1
I've several lines of text and I'd like each to fit in width (scaling the font size) to the width of the Context. Is there a way of doing this?
I'm using pangocairo and python for this.
2
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, no...
Selfconsistent asked 16/12, 2014 at 22:22
1
I found someone who ported over Pango Cairo for Android NDK (blog post, source code). However I have not been succesfull in compiling his example project. Has anyone managed to do so and can tell m...
Ahasuerus asked 1/8, 2012 at 15:16
1
Solved
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 ...
Eileen asked 22/8, 2013 at 14:59
0
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, an...
Ziguard asked 5/1, 2013 at 14:5
1
I have encountered a problem installing Pango-1.30 on a Ubuntu 12.04 platform. During ./configure step I receive a message saying "Could not enable any of Freetype, X11, Cairo, or Win32 backends. M...
5
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 n...
2
Solved
I have a DrawingArea onto which I can draw using primitives such as drawRectangle and drawLine. How do I draw text onto that area? I'm most interested in something that quickly outputs a single lin...
1
Solved
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 b...
1
© 2022 - 2024 — McMap. All rights reserved.