Pango Reference Manual 【文本和字体处理函数库】

Pango是一款用于文本布局和渲染的库,强调国际化,适用于各种文本布局需求,尤其在GTK+工具包中得到广泛应用。它支持全球主要书写系统,并提供模块化的字体后端,包括FreeType、HarfBuzz、Win32 API、CoreText等,能够处理复杂文本。Pango还包含高级布局驱动和编辑辅助功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Pango 是 GNOME 应用程序中使用的核心文本和字体处理函数库。它对全球使用的不同书写系统有着广泛支持。

Table of Contents

Basic Pango Interfaces

Rendering with Pango

Low Level Functionality


https://www.pango.org/

Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x.

Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each.

  • Client side fonts using the FreeType and fontconfig libraries, using HarfBuzz for complex-text handling. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries.

  • Native fonts on Microsoft Windows using Uniscribe for complex-text handling. Rendering can be done via Cairo or directly using the native Win32 API.
  • Native fonts on MacOS X using CoreText for complex-text handling, rendering via Cairo.

The integration of Pango with Cairo (http://cairographics.org/) provides a complete solution with high quality text handling and graphics rendering.

Dynamically loaded modules then handle text layout for particular combinations of script and font backend. Pango ships with a wide selection of modules, including modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts. Virtually all of the world's major scripts are supported.

As well as the low level layout rendering routines, Pango includes PangoLayout, a high level driver for laying out entire blocks of text, and routines to assist in editing internationalized text.

Pango depends on 2.x series of the GLib library; more information about GLib can be found at http://www.gtk.org/.

If this information is insufficient, please see also http://library.gnome.org/devel/pango/stable/


https://developer.gnome.org/pango/stable/

Basic Pango Interfaces

Rendering — Functions to run the rendering pipeline

Glyph Storage — Structures for storing information about glyphs

Fonts — Structures representing abstract fonts

Text Attributes — Font and other attributes for annotating text

Tab Stops — Structures for storing tab stops

Text Attribute Markup — Simple markup language to encode text with attributes

Layout Objects — High-level layout driver objects

Scripts and Languages — Identifying writing systems and languages

Bidirectional Text — Types and functions to help with handling bidirectional text

Vertical Text — Laying text out in vertical directions

Rendering with Pango

Win32 Fonts and Rendering — Functions for shape engines to manipulate Win32 fonts

FreeType Fonts and Rendering — Functions for shape engines to manipulate FreeType fonts

Xft Fonts and Rendering — Font handling and rendering with the Xft backend

Cairo Rendering — Rendering with the Cairo backend

CoreText Fonts — Font handling with CoreText fonts

Low Level Functionality

PangoRenderer — Rendering driver base class

PangoFcFontMap — Base fontmap class for Fontconfig-based backends

PangoFcFont — Base font class for Fontconfig-based backends

PangoFcDecoder — Custom font encoding handling

OpenType Font Handling — Obtaining information from OpenType tables

Coverage Maps — Unicode character range coverage storage

Engines — Language-specific and rendering-system-specific processing

PangoEngineLang — Rendering-system independent script engines

PangoEngineShape — Rendering-system dependent script engines

Modules — Support for loadable modules

Miscellaneous Utilities — Various convenience and utility functions

Version Checking — Tools for checking Pango version at compile- and run-time.

Object Hierarchy

Annotation Glossary

Index of all symbols

Index of deprecated symbols

Index of new symbols in 1.2

Index of new symbols in 1.4

Index of new symbols in 1.6

Index of new symbols in 1.8

Index of new symbols in 1.10

Index of new symbols in 1.12

Index of new symbols in 1.14

Index of new symbols in 1.16

Index of new symbols in 1.18

Index of new symbols in 1.20

Index of new symbols in 1.22

Index of new symbols in 1.24

Index of new symbols in 1.26

Index of new symbols in 1.30

Index of new symbols in 1.31

Index of new symbols in 1.32

Index of new symbols in 1.32.4

Index of new symbols in 1.34

Index of new symbols in 1.38

Index of new symbols in 1.40


Generated by GTK-Doc V1.25.1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值