Namespace
Pango – 1.0
Internationalized text layout and rendering
Build
pango/pango.hpangoDependencies
Related libraries
Classes
A PangoContext stores global information used to control the
itemization process.
A PangoCoverage structure is a map from Unicode characters
to PangoCoverageLevel values.
A PangoFont is used to represent a font in a
rendering-system-independent manner.
A PangoFontFace is used to represent a group of fonts with
the same family, slant, weight, and width, but varying sizes.
A PangoFontFamily is used to represent a family of related
font faces.
A PangoFontMap represents the set of fonts available for a
particular rendering system.
A PangoFontset represents a set of PangoFont to use when rendering text.
PangoFontsetSimple is a implementation of the abstract
PangoFontset base class as an array of fonts.
A PangoLayout structure represents an entire paragraph of text.
PangoRenderer is a base class for objects that can render text
provided as PangoGlyphString or PangoLayout.
since: 1.8
Structs
The PangoAnalysis structure stores information about
the properties of a segment of text.
The PangoAttrClass structure stores the type and operations for
a particular type of attribute.
The PangoAttrColor structure is used to represent attributes that
are colors.
The PangoAttrFloat structure is used to represent attributes with
a float or double value.
The PangoAttrFontDesc structure is used to store an attribute that
sets all aspects of the font description at once.
The PangoAttrFontFeatures structure is used to represent OpenType
font features as an attribute.
since: 1.38
The PangoAttribute structure represents the common portions of all attributes.
The PangoAttrInt structure is used to represent attributes with
an integer or enumeration value.
A PangoAttrIterator is used to iterate through a PangoAttrList.
The PangoAttrLanguage structure is used to represent attributes that
are languages.
A PangoAttrList represents a list of attributes that apply to a section
of text.
The PangoAttrShape structure is used to represent attributes which
impose shape restrictions.
The PangoAttrSize structure is used to represent attributes which
set font size.
The PangoAttrString structure is used to represent attributes with
a string value.
The PangoColor structure is used to
represent a color in an uncalibrated RGB color-space.
A PangoFontDescription describes a font in an implementation-independent manner.
A PangoFontMetrics structure holds the overall metric information
for a font.
The PangoGlyphGeometry structure contains width and positioning
information for a single glyph.
A PangoGlyphInfo structure represents a single glyph with
positioning information and visual attributes.
A PangoGlyphItem is a pair of a PangoItem and the glyphs
resulting from shaping the items text.
A PangoGlyphItemIter is an iterator over the clusters in a
PangoGlyphItem.
since: 1.22
A PangoGlyphString is used to store strings of glyphs with geometry
and visual attribute information.
A PangoGlyphVisAttr structure communicates information between
the shaping and rendering phases.
The PangoItem structure stores information about a segment of text.
The PangoLanguage structure is used to
represent a language.
A PangoLayoutIter can be used to iterate over the visual
extents of a PangoLayout.
A PangoLayoutLine represents one of the lines resulting from laying
out a paragraph via PangoLayout.
The PangoLogAttr structure stores information about the attributes of a
single character.
A PangoMatrix specifies a transformation between user-space
and device coordinates.
since: 1.6
The PangoRectangle structure represents a rectangle.
A PangoScriptIter is used to iterate through a string
and identify ranges in different scripts.
A PangoTabArray contains an array of tab stops.
Enumerations
PangoAlignment describes how to align the lines of a PangoLayout
within the available space.
The PangoAttrType distinguishes between different types of attributes.
PangoBidiType represents the bidirectional character
type of a Unicode character.
deprecated: 1.44 since: 1.22
PangoCoverageLevel is used to indicate how well a font can
represent a particular Unicode character for a particular script.
PangoDirection represents a direction in the Unicode bidirectional algorithm.
PangoEllipsizeMode describes what sort of ellipsization
should be applied to text.
An enumeration that affects font sizes for superscript and subscript positioning and for (emulated) Small Caps.
since: 1.50
PangoGravityHint defines how horizontal scripts should behave in a
vertical context.
since: 1.16
The PangoOverline enumeration is used to specify whether text
should be overlined, and if so, the type of line.
since: 1.46
PangoRenderPart defines different items to render for such
purposes as setting colors.
since: 1.8
The PangoScript enumeration identifies different writing systems.
An enumeration specifying the width of the font relative to other designs within a family.
An enumeration specifying the various slant styles possible for a font.
PangoTabAlign specifies where the text appears relative to the tab stop position.
The PangoUnderline enumeration is used to specify whether text
should be underlined, and if so, the type of underlining.
An enumeration specifying capitalization variant of the font.
An enumeration specifying the weight (boldness) of a font.
PangoWrapMode describes how to wrap the lines of a PangoLayout
to the desired width.
Error Domains
Callbacks
Type of a function that can duplicate user data for an attribute.
Type of a function filtering a list of attributes.
Functions
Create a new background color attribute.
Create a new font family attribute.
Create a new foreground color attribute.
Create a new baseline displacement attribute.
Create a new font size scale attribute.
Create a new attribute that influences how invisible characters are rendered.
since: 1.44
Create a new font stretch attribute.
Create a new strike-through attribute.
Create a new font slant style attribute.
Create a new attribute that influences how characters are transformed during shaping.
since: 1.50
Create a new underline-style attribute.
Create a new font variant attribute (normal or small caps).
Create a new font weight attribute.
Determines possible line, word, and character breaks for a string of Unicode text with a single analysis.
deprecated: 1.44
This is the default break algorithm.
Searches a string the first character that has a strong direction, according to the Unicode bidirectional algorithm.
since: 1.4
Locates a paragraph boundary in text.
Computes a PangoLogAttr for each character in text.
Breaks a piece of text into segments with consistent directional level and font.
Like pango_itemize(), but with an explicitly specified base direction.
since: 1.4
Return the bidirectional embedding levels of the input paragraph.
since: 1.4
Incrementally parses marked-up text to create a plain-text string and an attribute list.
since: 1.31.0
Parses marked-up text to create a plain-text string and an attribute list.
Parses a font stretch.
Parses a font style.
Parses a font variant.
Parses a font weight.
Quantizes the thickness and position of a line to whole device pixels.
since: 1.12
Reorder items from logical order to visual order.
Convert the characters in text into glyphs.
Splits a G_SEARCHPATH_SEPARATOR-separated list of files, stripping
white space and substituting ~/ with $HOME/.
deprecated: 1.38
Determines the inherent direction of a character.
Checks that the Pango library in use is compatible with the given version.
since: 1.16
Function Macros
Extracts the ascent from a PangoRectangle
representing glyph extents.
Extracts the descent from a PangoRectangle
representing glyph extents.
Extracts the left bearing from a PangoRectangle
representing glyph extents.
Converts a dimension to device units by rounding.
Extracts the right bearing from a PangoRectangle
representing glyph extents.
Rounds a dimension up to whole device units, but does not convert it to device units.
since: 1.50
Rounds a dimension down to whole device units, but does not convert it to device units.
since: 1.50
Rounds a dimension to whole device units, but does not convert it to device units.
since: 1.18
Checks that the version of Pango available at compile-time is not older than the provided version number.
This macro encodes the given Pango version into an integer. The numbers
returned by PANGO_VERSION and pango_version() are encoded using this macro.
Two encoded version numbers can be compared as integers.
Constants
Whether the segment should be shifted to center around the baseline.
Whether this run holds ellipsized text.
Whether to add a hyphen at the end of the run during shaping.
Value for start_index in PangoAttribute that indicates
the beginning of the text.
Value for end_index in PangoAttribute that indicates
the end of the text.
A PangoGlyph value that indicates a zero-width empty glpyh.
A PangoGlyph value for invalid input.
Flag used in PangoGlyph to turn a gunichar value of a valid Unicode
character into an unknown-character glyph for that gunichar.
The scale between dimensions used for Pango distances and device units.
The major component of the version of Pango available at compile-time.
The micro component of the version of Pango available at compile-time.
The minor component of the version of Pango available at compile-time.
A string literal containing the version of Pango available at compile-time.