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
2
votes
2 answers

Changing GtkLabel foreground color

I've written a simple function which aim is to change text & color of a GtkLabel. Trouble is (off course) : it doesn't work. Text contained in "status" is set correctly but color is not. I use the Pango Attribute to set it but no way. Call is like…
Chouchenn
  • 63
  • 9
2
votes
1 answer

Using Pango Markup within a GTK+ TreeView in C

I have a completely hardcoded GtkTreeView and I am trying to use Pango Markup on one of the columns in the Treeview. This requires the use of a cell data function on the text renderer for that column. The cell data function has the form: // This…
Leigh K
  • 561
  • 6
  • 20
2
votes
2 answers

no package pango found when build the firefox

I am building the customized source code of firefox. When I am going to build the firefox, I am given following error regading the "no pango package error". How can I solve this error.
2
votes
2 answers

Installing Pango/Cairo on Windows 10, x64

I'm trying to install WeasyPrint. I'm running Windows 10, 64 bit. I've followed the install guide on their website. Note that I'm new to this. I've spent the past two days trying to install pango and cairo, read about every post online about it but…
Jasper
  • 127
  • 2
  • 11
2
votes
1 answer

Why do fonts in Pango change weight when text is rotated in Cairo?

I'm having a problem with Pango rendering under a rotated matrix. I'm attempting to draw a label (see code below) which happens inside of an animating Cairo matrix rotation. As the label rotates, the text jitters, seeming to grow and shrink in…
Hanoixan
  • 449
  • 3
  • 12
2
votes
0 answers

Loop through characters of a string of multiple languages

The question is about text rendering, my system is Pango + FreeType + FontConfig + CentOS. My ultimate goal is to decide if a font can supports all characters of a given string. The given string can use multiple languages. The best solution I found…
Solti
  • 633
  • 2
  • 6
  • 17
2
votes
0 answers

Undefined reference in libpangoft2

Recently I've installed GTK+ 3.22 and its dependencies: GLib 2.50 Pango 1.40 Gdk-Pixbuf 2.36 Atk 2.22 GObject-Introspection 1.50 The installation was successful because I tried using some new features of GTK+ 3.22 in one of my Python projects and…
2
votes
0 answers

Bitnami npm install canvas

after trying every solution on Internet i am stuck with this error node-gyp rebuild make: Entering directory `/home/bitnami/SmartDoorbell/node_modules/canvas/build' SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node COPY…
2
votes
1 answer

New Symbolic Color in Pango Span Text

First time poster; long time admirer of the Stack Overflow angels. I'm having an issue with colors in span text that are controlled by Pango. Long Version: I'm updating an old UI program which has C++ code guts with GTK, XML (written by Glade), and…
Sizz
  • 21
  • 3
2
votes
1 answer

pango+cairo hello world leaks

I have problems with leaks in the pangocairo hello world example. #include #include int main(int argc, char *argv[]) { // 0 cairo_surface_t* surface=cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 240,…
user877329
  • 6,717
  • 8
  • 46
  • 88
2
votes
1 answer

Why is pango_layout_get_pixel_size slightly wrong on Ubuntu Linux in C

I'm experiencing a frustrating issue trying to draw text using Pango and Cairo libraries in C in a Gtk application running on Ubuntu Linux. I'm creating a Pango layout and then drawing it at a given location which is determined by the size of the…
user2062604
  • 247
  • 3
  • 16
2
votes
0 answers

Pango build error (GTK+3 build)

I am building GTK+3 (3.16.6) latest version on my Elementary OS desktop (Ubuntu 12.04) following these installation instructions at GTK website. I have successfully built and installed the following packages in "/opt/gtk" following the previous…
Debdut
  • 129
  • 1
  • 8
2
votes
1 answer

pango_cairo_layout_path method does not respect kerning

I'm using pango library to do some text layout and cairo backend for rendering. It seems to me that the pango_cairo_layout_path method does not respect kerning. I'm using c# bindings for pango and cairo that are provided with the gtk# project. Also…
ZDimitris
  • 31
  • 5
2
votes
0 answers

Rendering Multiline Text with NVPath Extension and Pango

I'm using Pango to layout my text and NV Path to render glyphs. Having difficulty in finding correct methods for getting per glyph positions. As you can see at the moment I'm calculating this values according to line and glyph indexes. But Pango has…
2
votes
1 answer

Pango unable to find fonts with librsvg

I'm using librsvg to render an SVG file to a Cairo context. Afterwards I "manually" render some text on top using Pango. When rendering the SVG I get Pango warnings that it could not load the fonts: "couldn't load font "'Calibri' Not-Rotated 16",…
Gigo
  • 3,188
  • 3
  • 29
  • 40