Questions tagged [pangocairo]

Pangocairo is a part of Pango that enables creation of Pango contexts on Cairo surfaces.

Pangocairo allows the creation of Pango contexts on Cairo contexts for the purpose of adding text to a Cairo-manipulated image or drawing.

Documentation: https://developer.gnome.org/pango/stable/pango-Cairo-Rendering.html

50 questions
0
votes
1 answer

Cairo + Pango layout non-left alignment

What is going on here? pango_font_description_set_family(font.get(),"Serif"); pango_font_description_set_absolute_size(font.get(), 16 * PANGO_SCALE); int w; int h; pango_layout_set_font_description…
user877329
  • 6,717
  • 8
  • 46
  • 88
0
votes
1 answer

can I use GtkTextView widget without gtk_init() / gtk_main()?

I currently use cairo/pango to generate raw image data from dynamic text. My application is not a Gtk+ GUI app, just a native C++ headless video server. Using dynamic text, I generated raw images for overlays and then alpha blend them over the video…
Andres Gonzalez
  • 2,129
  • 5
  • 29
  • 43
0
votes
0 answers

cairo draw_text and dangling pointer on itemized lines?

I try to use cairo to draw_text on screen but mac Os X instrument tells me that I have dangling pointer cause by pango_layout_get_pixel_size or pango_layout_get_baseline .. actuelly the first function which needs to have PangoLines and store them in…
user1947994
  • 61
  • 1
  • 6
0
votes
1 answer

C - Gtk3- Cairo - DrawArea - Plane cartesian - How i add text?

my purpose (for personal exercise) is create a plane cartesian where i represent some math functions. Cause of this i need of trading coordinates, how i can add text on DrawArea? I searched but i don't have find nothing (examples ecc) about draw…
Pegasum
  • 47
  • 1
  • 8
0
votes
1 answer

How to use cairo with gtk2 in C?

I have a huge problem with cairo and gtk2. I was following this tutorial: http://zetcode.com/gfx/cairo/cairobackends/ (GTK Window header). Unfortunately nothing appears in the window. Code from tutorial: #include #include…
jjpikoov
  • 119
  • 1
  • 11
1 2 3
4