pangomm 2.52.0
pangomm Reference Manual


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, compile it with:

g++ -o program `pkg-config --cflags --libs pangomm-2.48`

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

If you use Meson, include the following in

pangomm_dep = dependency('pangomm-2.48')
program_name = 'program'
cpp_sources = [ '' ]
dependencies: [ pangomm_dep ]

Alternatively, if using autoconf, use the following in

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

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