Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

I'm using Gnuplot 4.6 in Windows with the pngcairo terminal to plot some stuff. If I try to use the arial-bold font I get the following error: Pango-WARNING **: couldn't load font "arial-bold, Not-...
pavichokche's user avatar
0 votes
1 answer
198 views

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 ...
Iceman's user avatar
  • 4,390
2 votes
1 answer
1k views

If I try to run this example from the cairo website, I get: AttributeError: 'module' object has no attribute 'cairo_font_map_get_default' I guess I'm missing some packages? (I'm on Ubuntu 14.04) ...
knocte's user avatar
  • 18.2k
1 vote
1 answer
429 views

I have a program here that uses the GTK Status bar and I'd like to have multi-line output in it. When I try to output multiple lines into it, I get glyphs instead as seen below: I'd expect it to work ...
Mateusz Kowalczyk's user avatar
1 vote
1 answer
781 views

Basically,this is a problem of displaying a minority language. Let me make it brief: I've been trying to make my Opentype font(which has some features in it) work properly on non-windows(on windows, ...
gone's user avatar
  • 813
1 vote
1 answer
3k views

Formatting with Pango Markup has been shown to work on one --info --text entry in this stackoverflow answer. I would like to use a monospace font for a multiline list of block devices (avoiding ...
FGrose's user avatar
  • 51
3 votes
2 answers
2k views

I want to extract the formated text in a GtkTextView as html or pango markup language. Having a small text editor with formating like this. So the formating elements are simple <b>, <i>, ...
microo8's user avatar
  • 3,844
2 votes
0 answers
210 views

I just updated the pango package (running Arch Linux), and now I can't link any of my gtkmm code. Here's the error: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib/libpangocairo-1.0.so: ...
vinit_ivar's user avatar
0 votes
1 answer
913 views

I made a small gui app for rendering text using gtk+2. To tackle horrible fonts on win32. I am creating a cairo surface using native windows handle (HDC). Now font look beautiful in windows but it ...
duckduckgo's user avatar
  • 1,289
18 votes
2 answers
12k views

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 ...
Thomas Lann's user avatar
  • 1,254
3 votes
1 answer
201 views

I'm trying to install Threadscope on Windows 8 in order to follow along the Parallel and Concurrent Programming in Haskell –book. I successfully installed the GTK+ –bundle and subsequently tried ...
funky_vodka's user avatar
0 votes
2 answers
2k views

I'm really enjoying experimenting with Vala, and have managed to solve most of the snags I've encountered so far. But the one that's causing me a bit of time-wasting right now is the colouring (and ...
b j norse's user avatar
1 vote
1 answer
399 views

I am using japanese characters in a graphical user interface using python-gtk. However, instead of seeing japanese characters, I see squares with letters and numbers inside. I think I should use pango ...
sarah vb's user avatar
  • 149
1 vote
0 answers
120 views

In a PyGTK+ based program, I'm using Reportlab to generate PDF output. I'd like to enable users to select a font for that PDF output (partly due to this issue). The canonical way within (Py)GTK+ is ...
Bernhard Reiter's user avatar
0 votes
1 answer
215 views

I see in the tk source code in the Tkbind.c, TkEvent.c and TkEntry.c that there are a set of pointers, eventPtr, dispPtr, bindPtr, and a few more pointing to different C-structures. There is ...
Duck Dodgers's user avatar
  • 3,481
2 votes
1 answer
2k views

I'm trying to label the y-axis in a plot built using pango. I'm unable to orient the text to run vertically up along the y-axis. Relevant portion of code is: #include <gtkmm.h> Pango::...
Aditya Sihag's user avatar
  • 5,197
1 vote
2 answers
3k views

I'm trying to get Pango to control FreeType. I've successfully got FreeType to render into a bitmap but Pango doesn't seem to know what's going on, I'm obviously not doing something correctly. This ...
Chris Burt-Brown's user avatar
0 votes
1 answer
655 views

My code looks like from gi.repository import PangoCairo from gi.repository import Gtk class Column(Gtk.DrawingArea): getContext = lambda self: PangoCairo.create_context(self.get_window()....
saeedgnu's user avatar
  • 4,396
9 votes
1 answer
6k views

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 ...
thejh's user avatar
  • 45.7k
0 votes
1 answer
352 views

Im trying to install pango-1.4.1 package to my Linux machine (a prerequisit to gtk+-2.0 lib). The used distro is: CentOS release 5.9 (Final) Linux 2.6.18-274.18.1.el5 #1 SMP Thu Feb 9 12:45:52 EST ...
zsidanyi's user avatar
  • 105
5 votes
3 answers
10k views

Since ReportLab does not support Python 3 I am now attempting to generate PDF with cairo, which works but lacks text-wrapping support. The next step seems to require pango and its Python-bindings, but ...
handle's user avatar
  • 6,500
3 votes
1 answer
2k views

I have simple application that prints text and determines its size in pixels. static void Main(string[] args) { Application.Init(); var screen = Screen.Default; var layout = new Pango....
name1ess0ne's user avatar
1 vote
1 answer
3k views

I'm searching for a method to pre calculate the width of a text string with variable length with python gtk/pango. I want to use it for adjusting text size automatically fill a given space, for a GUI ...
user2350814's user avatar
8 votes
2 answers
2k views

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 ...
Steven T. Snyder's user avatar
1 vote
2 answers
3k views

How do I render a string with pango using custom antialiasing and hinting settings? I tried PangoCairo.set_antialias(cairo.ANTIALIAS_NONE) (in pygtk), but it had no effect. I'd like to be able to ...
jdm's user avatar
  • 10.3k
0 votes
1 answer
392 views

I have searched far and wide for two weeks trying to solve my issue and nothing has done much good, so I'm at the end of my string here! I created a custom printer-selection app for my workplace in ...
user2288570's user avatar
1 vote
1 answer
683 views

Is there a simple way to change the value-text's font, align and color of a GtkScale widget? For example, I want to have a red and bold number, instead of the standard black one.
Genesis Rock's user avatar
2 votes
0 answers
2k views

I am trying to predict how wide the text will appear rendered by pango library but I am trying to achieve it in bare Freetype for performance sake. To answer the commenters - yes I measured ...
RushPL's user avatar
  • 4,825
1 vote
1 answer
313 views

I'm using AwesomeWM vicious datewidget. I'm trying to output the date and time in wibox, in my rc.lua, with this format Feb 17, 12:10 AM (%b %d, %l:%M:%p) but I want the AM(%p) to be lowercase. I've ...
user10850's user avatar
6 votes
1 answer
2k views

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.
casasin's user avatar
  • 153
10 votes
0 answers
273 views

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 ...
Sharad's user avatar
  • 447
4 votes
0 answers
999 views

The question is: How do I make RRDTool generate graphs on Mac OS X ? I installed rrdtool using homebrew on Mac OS x 10.6.8. I'm able to create a database, update some data and fetch the data, but ...
Federico's user avatar
  • 5,798
3 votes
3 answers
13k views

I'm getting the following warning from my application that uses gtk+: (foo:11333): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() the function that is emitting the warning ...
Jack's user avatar
  • 16.7k
7 votes
1 answer
9k views

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. ...
allynm's user avatar
  • 231
0 votes
1 answer
711 views

I am trying to convert a Pango Font Description returned from a Font Chooser Dialog in GTK 3 to a string, however the C function: pango_font_description_to_string() Does not work, as it is a ...
user1150512's user avatar
1 vote
1 answer
802 views

I want two paragraphs with different styles of text, one above the other. This is the quickest way to describe it: <p style="font-size: 20pt">Para 1</p><p style="font-size: 10pt">...
Joe's user avatar
  • 48k
0 votes
1 answer
1k views

I'm using Mono + GTK# + Cairo + Pango on Ubuntu 12.04 and I found some memory leaks when using a Pango.Layout object. I'm drawing some animation with a framerate of about 30 fps and my memory only ...
gburri's user avatar
  • 163
0 votes
1 answer
89 views

I have pangoft2.vcproj. Once I have set the include directories etc., it compiles successfully. Now, in a new .sln (where I have a pango.vcproj), I add this pangoft2.vcproj. Now, when I compile the ...
user1414696's user avatar
2 votes
1 answer
3k views

I am writing a GTK+ application that is using Pango text attributes to determine the color and other aspects of the text written onto a GtkLabel using something like this: attributes = ...
Chimera's user avatar
  • 6,078
3 votes
4 answers
4k views

I have a fontbutton using pygtk. Initially, i do not want to set the font, as the system will take its default one. My question is what is the line of code to get the default font used by the system , ...
mrabhiram's user avatar
6 votes
1 answer
3k views

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 me ...
Michoel's user avatar
  • 230
2 votes
2 answers
2k views

I am trying to format a string to display two columns for a high score table. Python is able to do this well when using print print '{0:2d} {1:3d} {2:4d}'.format(x, x*x, x*x*x) but when trying to use ...
Made2k's user avatar
  • 222
0 votes
1 answer
407 views

I want to get PIL to draw the text using their fonts to get them, I use this code: fdia = Gtk.FontSelectionDialog("Font") response = fdia.run() if response == Gtk.ResponseType.OK: self.ui.eFont....
Alexander Z.'s user avatar
2 votes
1 answer
3k views

I want the window transparent, but the label to be 100% in opacity. How can I achieve this? BTW: I noticed when I upgraded to Ubuntu 12.04's unity interface that window.set_opacity wasn't working like ...
Michael Schwartz's user avatar
8 votes
2 answers
9k views

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 #define ...
user avatar
2 votes
1 answer
10k views

I am using Gtk 2.0. I am trying to change the text color/font color of the label. How difficult can it get? I am just trying things like gtk_widget_modify_text etc to no avail. I want to go the "...
user907810's user avatar
  • 3,438
0 votes
1 answer
1k views

I'd like to set a text into Drawing Area object, using pygtk. So, I created a drawing area and set up a callback function using "expose event" signal. Then I coded a function to set the text. What ...
FrankBr's user avatar
  • 896
0 votes
2 answers
342 views

I have constructed a Gtkmm GUI with miscellaneous widgets. On invoking the signal, each widget is intended to construct a "string" using user input data that is sent over the network. Thus I think, ...
enthusiasticgeek's user avatar
0 votes
1 answer
642 views

I need to write some text with pango-sharp, but depending on the number of characters scale the width. This is what I currently have: var layout = new Pango.Layout (Core.PangoContext); layout....
l2rek's user avatar
  • 32
3 votes
1 answer
3k views

I'm having problems getting Pango Cairo to word wrap. Below is some demo code. I am setting the layout's width to the same as the red rectangle, so I would expect it to wrap to the red rectangle. As ...
Joe's user avatar
  • 48k