pangomm: pangomm Reference Manual

pangomm 2.49.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

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-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 `meson.build:`

pangomm_dep = dependency('pangomm-2.48')
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-2.48])

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)