|
Packit |
0ec9dd |
Pango is a library for layout and rendering of text, with an emphasis
|
|
Packit |
0ec9dd |
on internationalization. Pango can be used anywhere that text layout
|
|
Packit |
0ec9dd |
is needed; however, most of the work on Pango so far has been done using
|
|
Packit |
0ec9dd |
the GTK+ widget toolkit as a test platform. Pango forms the core of text
|
|
Packit |
0ec9dd |
and font handling for GTK+-2.x.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
Pango is designed to be modular; the core Pango layout can be used
|
|
Packit |
0ec9dd |
with different font backends. There are three basic backends, with
|
|
Packit |
0ec9dd |
multiple options for rendering with each.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
- Client side fonts using the FreeType and FontConfig libraries.
|
|
Packit |
0ec9dd |
Rendering can be with with Cairo or Xft libraries, or directly
|
|
Packit |
0ec9dd |
to an in-memory buffer with no additional libraries.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
- Native fonts on Microsoft Windows using Uniscribe for complex
|
|
Packit |
0ec9dd |
script handling. Rendering can be done via Cairo or directly
|
|
Packit |
0ec9dd |
using the native Win32 API.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
- Native fonts on MacOS X with the CoreText framework, rendering via
|
|
Packit |
0ec9dd |
Cairo.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
The integration of Pango with Cairo (http://cairographics.org)
|
|
Packit |
0ec9dd |
provides a complete solution with high quality text handling
|
|
Packit |
0ec9dd |
and graphics rendering.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
As well as the low level layout rendering routines, Pango includes
|
|
Packit |
0ec9dd |
PangoLayout, a high level driver for laying out entire blocks of text,
|
|
Packit |
0ec9dd |
and routines to assist in editing internationalized text.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
For more information about Pango, see:
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
http://www.pango.org/
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
Dependencies
|
|
Packit |
0ec9dd |
============
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
Pango depends on the GLib library; more information about GLib can
|
|
Packit |
0ec9dd |
be found at http://www.gtk.org/.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
To use the Free Software stack backend, Pango depends on the following
|
|
Packit |
0ec9dd |
libraries:
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
* FontConfig for font discovery (http://www.fontconfig.org),
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
* FreeType for font access (http://www.freetype.org),
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
* HarfBuzz for complex text shaping (http://www.harfbuzz.org/)
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
Cairo support depends on the Cairo library (http://cairographics.org).
|
|
Packit |
0ec9dd |
The Cairo backend is the preferred backend to use Pango with and is
|
|
Packit |
0ec9dd |
subject of most of the development in the future. It has the
|
|
Packit |
0ec9dd |
advantage that the same code can be used for display and printing.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
We suggest using Pango with Cairo as described above, but you can also
|
|
Packit |
0ec9dd |
do X-specific rendering using the Xft library. The Xft backend uses
|
|
Packit |
0ec9dd |
version 2 of the Xft library to manage client side fonts. Version 2 of
|
|
Packit |
0ec9dd |
Xft is available from http://xlibs.freedesktop.org/release/. You'll
|
|
Packit |
0ec9dd |
need the libXft package, and possibly the libXrender and renderext
|
|
Packit |
0ec9dd |
packages as well. You'll also need FontConfig.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
Installation of Pango on Win32 is possible, see README.win32.
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
License
|
|
Packit |
0ec9dd |
=======
|
|
Packit |
0ec9dd |
|
|
Packit |
0ec9dd |
Most of the code of Pango is licensed under the terms of the
|
|
Packit |
0ec9dd |
GNU Lesser Public License (LGPL) - see the file COPYING for details.
|