pangomm Reference Manual

# Description

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

# Basic usage

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`

If your version of g++ is not C++11-compliant by default, add the `-std=c++11` option.

If you use Meson, include the following in `meson.build:`

pangomm_dep = dependency('pangomm-1.4')
program_name = 'program'
cpp_sources = [ 'program.cc' ]
executable(program_name,
cpp_sources,
dependencies: [ pangomm_dep ]
)

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)