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

Pango + Cairo; is there an existing approach for handling style tags in text?

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 havent done pango+cairo work before so i might be…
Vusak
  • 1,420
  • 9
  • 12
7
votes
1 answer

problems installing Pango-1.30.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. Must have at least one backend to build Pango". …
allynm
  • 221
  • 4
  • 7
6
votes
1 answer

How do I do text wrapping in pyCairo + Pango?

What I need pyCairo to do is : generate an image of size 100x100 containing some text and an image from filesystem as background the text should be within a box which has text wrapping of size 20x20 with bottom left corner at (40,40). save this…
Nullpoet
  • 10,949
  • 20
  • 48
  • 65
6
votes
1 answer

Fit line to width with Pango and Cairo (Pycairo)

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
  • 153
  • 7
6
votes
1 answer

Building Pango Cairo for Android NDK

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 what I am doing wrong? This is what I have tried…
Michoel
  • 230
  • 2
  • 7
6
votes
2 answers

Loading a font from a file to pango?

I have a code uses Cairo and Pango to create an image : #include #include #include #define IMAGE_WIDTH 650 #define IMAGE_HEIGHT 150 #define TEXT "HELLO WORLD" #define FONT "MizuFontAlphabet Normal 40" /* *…
user1129665
5
votes
0 answers

Text Alignment in Pango Markup Language

Written a markup like this P S with the help of the following link The above markup can be fed to the textoverlay element as a text property of Gstreamer. I am not getting…
5
votes
1 answer

Using PangoCairo with PyGObject API

I am porting a Python2 script that uses Pango for drawing text to a Cairo surface. It works fine using the old PyGtk API with the pangocairo package. My system (Debian Jesse) doesn't have Python3 packages for PyGtk and instead uses the newer Gtk+…
Kevin Thibedeau
  • 3,299
  • 15
  • 26
5
votes
0 answers

compiling pango: undefined reference to `hb_ft_face_create'

I've been trying to compile pango-1.38.1 configure was fine however there is a link error during make: Making all in pango-view make[2]: Entering directory `/home/build/pango-1.38.1/pango-view' CCLD …
e19293001
  • 2,783
  • 9
  • 42
  • 54
5
votes
1 answer

Create Pango Layout Before Cairo Surface

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 situation will then scale their heights to match…
user3995702
5
votes
3 answers

undefined reference to `hb_ft_font_create' on linux

When compiling pango I get this error: lib/libfreetype.so: undefined reference to `hb_ft_font_create' I've compiled freetype and harfbuzz; also I pass -lfreetype and -lharfbuzz in LIBS variable.
nitin kumar
  • 642
  • 12
  • 21
5
votes
2 answers

GTKSharp, Pango, set font size quirkiness

I'm using GTK Sharp to work on some GUI for my app. Take a look at this chunk of code: Pango.FontDescription fontdesc = new Pango.FontDescription(); fontdesc.Family = "Sans"; //fontdesc.Size = 12; fontdesc.Weight =…
nubela
  • 1
  • 24
  • 75
  • 123
5
votes
3 answers

How to install pango for Python on Windows?

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 I cannot find any information on how to install…
handle
  • 5,859
  • 3
  • 54
  • 82
4
votes
1 answer

How do I determine the fallback font for Pango?

I'm rendering some text using pangomm, but the font that I am using doesn't have glyphs for parts of the text (in this case, there is some Japanese mixed in with English). Pango seems to render the text correctly using a fallback font. How can I…
cyang
  • 5,574
  • 2
  • 25
  • 34
4
votes
2 answers

How to resolve Cairo and Pango version problems following pip WeasyPrint installation?

I want to run some Python code from the WeasyPrint library on a server running Debian GNU/Linux 8. The code actually appears to be working, except WeasyPrint gives a warning every time the code is…
Nelson Frew
  • 107
  • 1
  • 9
1
2
3
15 16