pangomm 2.54.0
|
pangomm is the official C++ interface for the Pango font layout library. See, for instance, the Pango::Layout class.
Include the pangomm header:
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:
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:
Alternatively, if using autoconf, use the following in configure.ac:
Then use the generated PANGOMM_CFLAGS
and PANGOMM_LIBS
variables in the project Makefile.am
files. For example: