pangomm Reference Manual

2.28.2

description

pangomm is the official C++ interface for the Pango font layout library. See, for instance, the Pango::Layout class.

basics

Include the pangomm header:

 #include <pangomm.h>

This includes every header installed by pangomm, so can slow down compilation, but suffices for this simple example. Assuming that your program source file is program.cc, compile it with:

 g++ program.cc -o program `pkg-config --cflags --libs pangomm-1.4`

Alternatively, if using autoconf, use the following in configure.ac:

 PKG_CHECK_MODULES([PANGOMM], [pangomm-1.4])

Then use the generated PANGOMM_CFLAGS and PANGOMM_LIBS variables in the project Makefile.am files. For example:

 program_CPPFLAGS = $(PANGOMM_CFLAGS)
 program_LDADD = $(PANGOMM_LIBS)