Shaun McCance shaunm@gnome.org 2011–2012 International text rendering with full Unicode support Pango

Pango — ключевая библиотека обработки текста и шрифтов в платформе GNOME. Она отвечает за расположение и прорисовку текста и используется в GTK+.

Pango используется для решения различных задач работы со шрифтами и прорисовки. На большинстве систем GNOME Pango использует библиотеки FreeType, fontconfig и Cairo для доступа к шрифтам и прорисовки текста. В других системах Pango использует их встроенные механизмы работы со шрифтами: Uniscribe на Microsoft Windows и ATSUI на MacOS.

Pango has extensive support for the various writing systems used throughout the world. Many of the writing systems used for languages have complex rules for laying out glyphs and composing characters. With Pango, nearly all languages can be written and displayed correctly, allowing users everywhere to view text in their native languages. Pango's support for multiple writing systems is automatic; application developers do not have to write any special code to support other languages.

Pango supports the kind of text styling used in typical documents and interfaces, including italics, font weights, and underlines. Pango uses a simple XML-like vocabulary called PangoMarkup which enables you to set font size, color, styles, and other text attributes. Using PangoMarkup, you can specify inline styles without manually iterating over text blocks. PangoMarkup can be used directly from GTK+, enabling you to style text in your graphical interfaces easily.

При необходимости расположить текст непосредственно на экране или другом устройстве вывода следует использовать библиотеку Pango напрямую, при этом текст будет выводиться согласованно с библиотекой GTK+ и остальной частью платформы GNOME. Что поможет создать переносимый код и, что ещё более важно, гарантирует, что приложение сможет корректно отобразить текст на сотнях различных языков.

Pango Reference Manual

The Pango web site