pangomm 2.46.4
Classes | Typedefs | Enumerations | Functions | Variables
Pango Namespace Reference

Classes

class  Analysis
 A Pango::Analysis stores information about the properties of a segment of text. More...
 
class  AttrColor
 A Pango::AttrColor is used to represent an attribute which is a color. More...
 
class  AttrFloat
 A Pango::AttrFloat is used to represent an attribute with a float or double value. More...
 
class  AttrFontDesc
 A Pango::AttrFontDesc is used to represent an attribute that sets all aspects of the font description at once. More...
 
class  Attribute
 The Pango::Attribute structure represents the common portions of all attributes. More...
 
struct  AttributeTraits
 
class  AttrInt
 A Pango::AttrInt is used to represent an attribute with an integer or enumeration value. More...
 
class  AttrIter
 A Pango::AttrIter is used to represent an iterator through a Pango::AttrList. More...
 
class  AttrLanguage
 A Pango::AttrLanguage is used to represent an attribute that is a language. More...
 
class  AttrList
 A Pango::AttrList represents a list of attributes that apply to a section of text. More...
 
class  AttrShape
 A Pango::AttrShape structure is used to represent an attribute which imposes shape restrictions. More...
 
class  AttrString
 A Pango::AttrString is used to represent an attribute with a string value. More...
 
class  CairoFontMap
 A Pango::CairoFontMap represents the set of fonts available for a particular rendering system. More...
 
class  Color
 A Pango::Color is used to represent a color in an uncalibrated RGB colorspace. More...
 
class  Context
 A Pango::Context stores global information used to control the itemization process. More...
 
class  Coverage
 A Pango::Coverage represents a map from ISO-10646 character point to Pango::CoverageLevel. More...
 
class  Font
 A Pango::Font is used to represent a font in a rendering-system-independent matter. More...
 
class  FontDescription
 A Pango::FontDescription represents the description of an ideal font. More...
 
class  FontFace
 A Pango::FontFace is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes. More...
 
class  FontFamily
 A Pango::FontFamily is used to represent a family of related font faces. More...
 
class  FontMap
 A Pango::FontMap represents the set of fonts available for a particular rendering system. More...
 
class  FontMetrics
 A Pango::FontMetrics holds the overall metric information for a font (possibly restricted to a script). More...
 
class  Fontset
 A Pango::Fontset is used to represent a set of fonts. More...
 
class  GlyphGeometry
 A Pango::GlyphGeometry contains width and positioning information for a single glyph. More...
 
class  GlyphInfo
 A Pango::GlyphInfo represents a single glyph together with positioning information and visual attributes. More...
 
class  GlyphString
 A Pango::GlyphString is used to store strings of glyphs with geometry and visual attribute information. More...
 
class  Item
 A Pango::Item stores information about a segment of text. More...
 
struct  ItemTraits
 
class  Language
 A Pango::Language is used to represent a language. More...
 
class  Layout
 A Pango::Layout represents an entire paragraph of text. More...
 
class  LayoutIter
 A Pango::LayoutIter can be used to iterate over the visual extents of a Pango::Layout. More...
 
class  LayoutLine
 A Pango::LayoutLine represents one of the lines resulting from laying out a paragraph via Pango::Layout. More...
 
struct  LayoutLineTraits
 
class  LayoutRun
 A Pango::LayoutRun represents a single run within a LayoutLine. More...
 
class  Rectangle
 A Pango::Rectangle represents a rectangle. More...
 
class  Renderer
 Pango::Renderer is a base class that contains the necessary logic for rendering a Pango::Layout or Pango::LayoutLine. More...
 
class  TabArray
 A Pango::TabArray contains an array of tab stops. More...
 

Typedefs

typedef PangoMatrix Matrix
 
typedef PangoLogAttr LogAttr
 A Pango::LogAttr stores information about the attributes of a single character.
 
typedef Glib::SListHandle< Attribute, AttributeTraitsSListHandle_Attribute
 
typedef PangoGlyph Glyph
 A Pango::Glyph represents a single glyph in the output form of a string.
 
typedef PangoGlyphUnit GlyphUnit
 A Pango::GlyphUnit is used to store dimensions within Pango.
 
typedef PangoGlyphVisAttr GlyphVisAttr
 A Pango::GlyphVisAttr is used to communicate information between the shaping phase and the rendering phase.
 
typedef Glib::ListHandle< Item, ItemTraitsListHandle_Item
 
typedef Glib::SListHandle< Glib::RefPtr< LayoutLine >, LayoutLineTraitsSListHandle_LayoutLine
 
typedef Glib::SListHandle< Glib::RefPtr< const LayoutLine >, LayoutLineTraitsSListHandle_ConstLayoutLine
 
typedef LayoutRun GlyphItem
 A Pango::GlyphItem is a pair of a Pango::Items and the glyphs resulting from shaping the text corresponding to an item.
 

Enumerations

enum  AttrType {
  ATTR_INVALID ,
  ATTR_LANGUAGE ,
  ATTR_FAMILY ,
  ATTR_STYLE ,
  ATTR_WEIGHT ,
  ATTR_VARIANT ,
  ATTR_STRETCH ,
  ATTR_SIZE ,
  ATTR_FONT_DESC ,
  ATTR_FOREGROUND ,
  ATTR_BACKGROUND ,
  ATTR_UNDERLINE ,
  ATTR_STRIKETHROUGH ,
  ATTR_RISE ,
  ATTR_SHAPE ,
  ATTR_SCALE ,
  ATTR_FALLBACK ,
  ATTR_LETTER_SPACING ,
  ATTR_UNDERLINE_COLOR ,
  ATTR_STRIKETHROUGH_COLOR ,
  ATTR_ABSOLUTE_SIZE ,
  ATTR_GRAVITY ,
  ATTR_GRAVITY_HINT ,
  ATTR_FONT_FEATURES ,
  ATTR_FOREGROUND_ALPHA ,
  ATTR_BACKGROUND_ALPHA ,
  ATTR_ALLOW_BREAKS ,
  ATTR_SHOW ,
  ATTR_INSERT_HYPHENS ,
  ATTR_OVERLINE ,
  ATTR_OVERLINE_COLOR
}
 
enum  Underline {
  UNDERLINE_NONE ,
  UNDERLINE_SINGLE ,
  UNDERLINE_DOUBLE ,
  UNDERLINE_LOW ,
  UNDERLINE_ERROR ,
  UNDERLINE_SINGLE_LINE ,
  UNDERLINE_DOUBLE_LINE ,
  UNDERLINE_ERROR_LINE
}
 
enum  Overline {
  OVERLINE_NONE ,
  OVERLINE_SINGLE
}
 
enum  ShowFlags {
  SHOW_NONE = 0x0 ,
  SHOW_SPACES = 1 << 0 ,
  SHOW_LINE_BREAKS = 1 << 1 ,
  SHOW_IGNORABLES = 1 << 2
}
 
enum  Direction {
  DIRECTION_LTR ,
  DIRECTION_RTL ,
  DIRECTION_TTB_LTR ,
  DIRECTION_TTB_RTL ,
  DIRECTION_WEAK_LTR ,
  DIRECTION_WEAK_RTL ,
  DIRECTION_NEUTRAL
}
 
enum  GravityHint {
  GRAVITY_HINT_NATURAL ,
  GRAVITY_HINT_STRONG ,
  GRAVITY_HINT_LINE
}
 
enum  CoverageLevel {
  COVERAGE_NONE ,
  COVERAGE_FALLBACK ,
  COVERAGE_APPROXIMATE ,
  COVERAGE_EXACT
}
 
enum  Style {
  STYLE_NORMAL ,
  STYLE_OBLIQUE ,
  STYLE_ITALIC
}
 
enum  Variant {
  VARIANT_NORMAL ,
  VARIANT_SMALL_CAPS
}
 
enum  Stretch {
  STRETCH_ULTRA_CONDENSED ,
  STRETCH_EXTRA_CONDENSED ,
  STRETCH_CONDENSED ,
  STRETCH_SEMI_CONDENSED ,
  STRETCH_NORMAL ,
  STRETCH_SEMI_EXPANDED ,
  STRETCH_EXPANDED ,
  STRETCH_EXTRA_EXPANDED ,
  STRETCH_ULTRA_EXPANDED
}
 
enum  Weight {
  WEIGHT_THIN = 100 ,
  WEIGHT_ULTRALIGHT = 200 ,
  WEIGHT_LIGHT = 300 ,
  WEIGHT_SEMILIGHT = 350 ,
  WEIGHT_BOOK = 380 ,
  WEIGHT_NORMAL = 400 ,
  WEIGHT_MEDIUM = 500 ,
  WEIGHT_SEMIBOLD = 600 ,
  WEIGHT_BOLD = 700 ,
  WEIGHT_ULTRABOLD = 800 ,
  WEIGHT_HEAVY = 900 ,
  WEIGHT_ULTRAHEAVY = 1000
}
 
enum  FontMask {
  FONT_MASK_FAMILY = 1 << 0 ,
  FONT_MASK_STYLE = 1 << 1 ,
  FONT_MASK_VARIANT = 1 << 2 ,
  FONT_MASK_WEIGHT = 1 << 3 ,
  FONT_MASK_STRETCH = 1 << 4 ,
  FONT_MASK_SIZE = 1 << 5 ,
  FONT_MASK_GRAVITY = 1 << 6 ,
  FONT_MASK_VARIATIONS = 1 << 7
}
 
enum  Gravity {
  GRAVITY_SOUTH ,
  GRAVITY_EAST ,
  GRAVITY_NORTH ,
  GRAVITY_WEST ,
  GRAVITY_AUTO
}
 
enum  ShapeFlags {
  SHAPE_NONE = 0x0 ,
  SHAPE_ROUND_POSITIONS = 1 << 0
}
 
enum  Script {
  SCRIPT_INVALID_CODE = -1 ,
  SCRIPT_COMMON ,
  SCRIPT_INHERITED ,
  SCRIPT_ARABIC ,
  SCRIPT_ARMENIAN ,
  SCRIPT_BENGALI ,
  SCRIPT_BOPOMOFO ,
  SCRIPT_CHEROKEE ,
  SCRIPT_COPTIC ,
  SCRIPT_CYRILLIC ,
  SCRIPT_DESERET ,
  SCRIPT_DEVANAGARI ,
  SCRIPT_ETHIOPIC ,
  SCRIPT_GEORGIAN ,
  SCRIPT_GOTHIC ,
  SCRIPT_GREEK ,
  SCRIPT_GUJARATI ,
  SCRIPT_GURMUKHI ,
  SCRIPT_HAN ,
  SCRIPT_HANGUL ,
  SCRIPT_HEBREW ,
  SCRIPT_HIRAGANA ,
  SCRIPT_KANNADA ,
  SCRIPT_KATAKANA ,
  SCRIPT_KHMER ,
  SCRIPT_LAO ,
  SCRIPT_LATIN ,
  SCRIPT_MALAYALAM ,
  SCRIPT_MONGOLIAN ,
  SCRIPT_MYANMAR ,
  SCRIPT_OGHAM ,
  SCRIPT_OLD_ITALIC ,
  SCRIPT_ORIYA ,
  SCRIPT_RUNIC ,
  SCRIPT_SINHALA ,
  SCRIPT_SYRIAC ,
  SCRIPT_TAMIL ,
  SCRIPT_TELUGU ,
  SCRIPT_THAANA ,
  SCRIPT_THAI ,
  SCRIPT_TIBETAN ,
  SCRIPT_CANADIAN_ABORIGINAL ,
  SCRIPT_YI ,
  SCRIPT_TAGALOG ,
  SCRIPT_HANUNOO ,
  SCRIPT_BUHID ,
  SCRIPT_TAGBANWA ,
  SCRIPT_BRAILLE ,
  SCRIPT_CYPRIOT ,
  SCRIPT_LIMBU ,
  SCRIPT_OSMANYA ,
  SCRIPT_SHAVIAN ,
  SCRIPT_LINEAR_B ,
  SCRIPT_TAI_LE ,
  SCRIPT_UGARITIC ,
  SCRIPT_NEW_TAI_LUE ,
  SCRIPT_BUGINESE ,
  SCRIPT_GLAGOLITIC ,
  SCRIPT_TIFINAGH ,
  SCRIPT_SYLOTI_NAGRI ,
  SCRIPT_OLD_PERSIAN ,
  SCRIPT_KHAROSHTHI ,
  SCRIPT_UNKNOWN ,
  SCRIPT_BALINESE ,
  SCRIPT_CUNEIFORM ,
  SCRIPT_PHOENICIAN ,
  SCRIPT_PHAGS_PA ,
  SCRIPT_NKO ,
  SCRIPT_KAYAH_LI ,
  SCRIPT_LEPCHA ,
  SCRIPT_REJANG ,
  SCRIPT_SUNDANESE ,
  SCRIPT_SAURASHTRA ,
  SCRIPT_CHAM ,
  SCRIPT_OL_CHIKI ,
  SCRIPT_VAI ,
  SCRIPT_CARIAN ,
  SCRIPT_LYCIAN ,
  SCRIPT_LYDIAN ,
  SCRIPT_BATAK ,
  SCRIPT_BRAHMI ,
  SCRIPT_MANDAIC ,
  SCRIPT_CHAKMA ,
  SCRIPT_MEROITIC_CURSIVE ,
  SCRIPT_MEROITIC_HIEROGLYPHS ,
  SCRIPT_MIAO ,
  SCRIPT_SHARADA ,
  SCRIPT_SORA_SOMPENG ,
  SCRIPT_TAKRI ,
  SCRIPT_BASSA_VAH ,
  SCRIPT_CAUCASIAN_ALBANIAN ,
  SCRIPT_DUPLOYAN ,
  SCRIPT_ELBASAN ,
  SCRIPT_GRANTHA ,
  SCRIPT_KHOJKI ,
  SCRIPT_KHUDAWADI ,
  SCRIPT_LINEAR_A ,
  SCRIPT_MAHAJANI ,
  SCRIPT_MANICHAEAN ,
  SCRIPT_MENDE_KIKAKUI ,
  SCRIPT_MODI ,
  SCRIPT_MRO ,
  SCRIPT_NABATAEAN ,
  SCRIPT_OLD_NORTH_ARABIAN ,
  SCRIPT_OLD_PERMIC ,
  SCRIPT_PAHAWH_HMONG ,
  SCRIPT_PALMYRENE ,
  SCRIPT_PAU_CIN_HAU ,
  SCRIPT_PSALTER_PAHLAVI ,
  SCRIPT_SIDDHAM ,
  SCRIPT_TIRHUTA ,
  SCRIPT_WARANG_CITI ,
  SCRIPT_AHOM ,
  SCRIPT_ANATOLIAN_HIEROGLYPHS ,
  SCRIPT_HATRAN ,
  SCRIPT_MULTANI ,
  SCRIPT_OLD_HUNGARIAN ,
  SCRIPT_SIGNWRITING
}
 
enum  Alignment {
  ALIGN_LEFT ,
  ALIGN_CENTER ,
  ALIGN_RIGHT
}
 
enum  WrapMode {
  WRAP_WORD ,
  WRAP_CHAR ,
  WRAP_WORD_CHAR
}
 
enum  EllipsizeMode {
  ELLIPSIZE_NONE ,
  ELLIPSIZE_START ,
  ELLIPSIZE_MIDDLE ,
  ELLIPSIZE_END
}
 
enum  RenderPart {
  RENDER_PART_FOREGROUND ,
  RENDER_PART_BACKGROUND ,
  RENDER_PART_UNDERLINE ,
  RENDER_PART_STRIKETHROUGH ,
  RENDER_PART_OVERLINE
}
 
enum  TabAlign { TAB_LEFT }
 

Functions

void init ()
 Initialize pangomm.
 
ShowFlags operator| (ShowFlags lhs, ShowFlags rhs)
 
ShowFlags operator& (ShowFlags lhs, ShowFlags rhs)
 
ShowFlags operator^ (ShowFlags lhs, ShowFlags rhs)
 
ShowFlags operator~ (ShowFlags flags)
 
ShowFlagsoperator|= (ShowFlags & lhs, ShowFlags rhs)
 
ShowFlagsoperator&= (ShowFlags & lhs, ShowFlags rhs)
 
ShowFlagsoperator^= (ShowFlags & lhs, ShowFlags rhs)
 
FontMask operator| (FontMask lhs, FontMask rhs)
 
FontMask operator& (FontMask lhs, FontMask rhs)
 
FontMask operator^ (FontMask lhs, FontMask rhs)
 
FontMask operator~ (FontMask flags)
 
FontMaskoperator|= (FontMask & lhs, FontMask rhs)
 
FontMaskoperator&= (FontMask & lhs, FontMask rhs)
 
FontMaskoperator^= (FontMask & lhs, FontMask rhs)
 
ShapeFlags operator| (ShapeFlags lhs, ShapeFlags rhs)
 
ShapeFlags operator& (ShapeFlags lhs, ShapeFlags rhs)
 
ShapeFlags operator^ (ShapeFlags lhs, ShapeFlags rhs)
 
ShapeFlags operator~ (ShapeFlags flags)
 
ShapeFlagsoperator|= (ShapeFlags & lhs, ShapeFlags rhs)
 
ShapeFlagsoperator&= (ShapeFlags & lhs, ShapeFlags rhs)
 
ShapeFlagsoperator^= (ShapeFlags & lhs, ShapeFlags rhs)
 

Variables

const int SCALE = 1024
 
const double SCALE_XX_SMALL = 0.5787037037037
 
const double SCALE_X_SMALL = 0.6444444444444
 
const double SCALE_SMALL = 0.8333333333333
 
const double SCALE_MEDIUM = 1.0
 
const double SCALE_LARGE = 1.2
 
const double SCALE_X_LARGE = 1.4399999999999
 
const double SCALE_XX_LARGE = 1.728
 

Typedef Documentation

◆ Glyph

typedef PangoGlyph Pango::Glyph

A Pango::Glyph represents a single glyph in the output form of a string.

◆ GlyphItem

A Pango::GlyphItem is a pair of a Pango::Items and the glyphs resulting from shaping the text corresponding to an item.

As an example of the usage of Pango::GlyphItem, the results of shaping text with Pango::Layout is a list of Pango::LayoutLine, each of which contains a list of Pango::GlyphItem.

◆ GlyphUnit

typedef PangoGlyphUnit Pango::GlyphUnit

A Pango::GlyphUnit is used to store dimensions within Pango.

Dimensions are stored in 1/64ths of a point.

◆ GlyphVisAttr

typedef PangoGlyphVisAttr Pango::GlyphVisAttr

A Pango::GlyphVisAttr is used to communicate information between the shaping phase and the rendering phase.

It's contents are still evolving.

◆ ListHandle_Item

◆ LogAttr

typedef PangoLogAttr Pango::LogAttr

A Pango::LogAttr stores information about the attributes of a single character.

◆ Matrix

typedef PangoMatrix Pango::Matrix

◆ SListHandle_Attribute

◆ SListHandle_ConstLayoutLine

◆ SListHandle_LayoutLine

Enumeration Type Documentation

◆ Alignment

Enumerator
ALIGN_LEFT 

Put all available space on the right.

ALIGN_CENTER 

Center the line within the available space.

ALIGN_RIGHT 

Put all available space on the left.

◆ AttrType

Enumerator
ATTR_INVALID 

Pango::AttrType distinguishes between different types of attributes.

Along with the predefined values, it is possible to allocate additional values for custom attributes using Pango::Attribute::register_type(). The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description.

Does not happen.

ATTR_LANGUAGE 

Language (Pango::AttrLanguage).

ATTR_FAMILY 

Font family name list (Pango::AttrString).

ATTR_STYLE 

Font slant style (Pango::AttrInt).

ATTR_WEIGHT 

Font weight (Pango::AttrInt).

ATTR_VARIANT 

Font variant (normal or small caps) (Pango::AttrInt).

ATTR_STRETCH 

Font stretch (Pango::AttrInt).

ATTR_SIZE 

Font size in points scaled by Pango::SCALE (Pango::AttrInt).

ATTR_FONT_DESC 

Font description (Pango::AttrFontDesc).

ATTR_FOREGROUND 

Foreground color (Pango::AttrColor).

ATTR_BACKGROUND 

Background color (Pango::AttrColor).

ATTR_UNDERLINE 

Whether the text has an underline (Pango::AttrInt).

ATTR_STRIKETHROUGH 

Whether the text is struck-through (Pango::AttrInt).

ATTR_RISE 

Baseline displacement (Pango::AttrInt).

ATTR_SHAPE 

Shape (Pango::AttrShape).

ATTR_SCALE 

Font size scale factor (Pango::AttrFloat).

ATTR_FALLBACK 

Whether fallback is enabled (Pango::AttrInt).

ATTR_LETTER_SPACING 

Letter spacing (Pango::AttrInt).

ATTR_UNDERLINE_COLOR 

Underline color (Pango::AttrColor).

ATTR_STRIKETHROUGH_COLOR 

Strikethrough color (Pango::AttrColor).

ATTR_ABSOLUTE_SIZE 

Font size in pixels scaled by Pango::SCALE (Pango::AttrInt).

ATTR_GRAVITY 

Base text gravity (Pango::AttrInt).

ATTR_GRAVITY_HINT 

Gravity hint (Pango::AttrInt).

ATTR_FONT_FEATURES 

OpenType font features (Pango::AttrString).

Since pangomm 1.38:
ATTR_FOREGROUND_ALPHA 

Foreground alpha (Pango::AttrInt).

Since pangomm 1.38:
ATTR_BACKGROUND_ALPHA 

Background alpha (Pango::AttrInt).

Since pangomm 1.38:
ATTR_ALLOW_BREAKS 

Whether breaks are allowed (Pango::AttrInt).

Since pangomm 1.44:
ATTR_SHOW 

How to render invisible characters (Pango::AttrInt).

Since pangomm 1.44:
ATTR_INSERT_HYPHENS 

Whether to insert hyphens at intra-word line breaks (Pango::AttrInt).

Since pangomm 1.44:
ATTR_OVERLINE 

Whether the text has an overline (Pango::AttrInt).

Since pangomm 1.46:
ATTR_OVERLINE_COLOR 

Overline color (Pango::AttrColor).

Since pangomm 1.46:

◆ CoverageLevel

Enumerator
COVERAGE_NONE 

The character is not representable with the font.

COVERAGE_FALLBACK 

The character is represented in a way that may be comprehensible but is not the correct graphical form.

For instance, a Hangul character represented as a a sequence of Jamos, or a Latin transliteration of a Cyrillic word.

COVERAGE_APPROXIMATE 

The character is represented as basically the correct graphical form, but with a stylistic variant inappropriate for the current script.

COVERAGE_EXACT 

The character is represented as the correct graphical form.

◆ Direction

Enumerator
DIRECTION_LTR 

A strong left-to-right direction.

DIRECTION_RTL 

A strong right-to-left direction.

DIRECTION_TTB_LTR 

Deprecated value; treated the same as Pango::DIRECTION_RTL.

DIRECTION_TTB_RTL 

Deprecated value; treated the same as Pango::DIRECTION_LTR.

DIRECTION_WEAK_LTR 

A weak left-to-right direction.

DIRECTION_WEAK_RTL 

A weak right-to-left direction.

DIRECTION_NEUTRAL 

No direction specified.

◆ EllipsizeMode

Enumerator
ELLIPSIZE_NONE 

No ellipsization.

ELLIPSIZE_START 

Omit characters at the start of the text.

ELLIPSIZE_MIDDLE 

Omit characters in the middle of the text.

ELLIPSIZE_END 

Omit characters at the end of the text.

◆ FontMask

Enumerator
FONT_MASK_FAMILY 

The font family is specified.

FONT_MASK_STYLE 

The font style is specified.

FONT_MASK_VARIANT 

The font variant is specified.

FONT_MASK_WEIGHT 

The font weight is specified.

FONT_MASK_STRETCH 

The font stretch is specified.

FONT_MASK_SIZE 

The font size is specified.

FONT_MASK_GRAVITY 

The font gravity is specified (Since: 1.16.).

FONT_MASK_VARIATIONS 

OpenType font variations are specified (Since: 1.42).

◆ Gravity

Enumerator
GRAVITY_SOUTH 

Glyphs stand upright (default).

GRAVITY_EAST 

Glyphs are rotated 90 degrees clockwise.

GRAVITY_NORTH 

Glyphs are upside-down.

GRAVITY_WEST 

Glyphs are rotated 90 degrees counter-clockwise.

GRAVITY_AUTO 

Gravity is resolved from the context matrix.

◆ GravityHint

Enumerator
GRAVITY_HINT_NATURAL 

Scripts will take their natural gravity based on the base gravity and the script.

This is the default.

GRAVITY_HINT_STRONG 

Always use the base gravity set, regardless of the script.

GRAVITY_HINT_LINE 

For scripts not in their natural direction (eg.

Latin in East gravity), choose per-script gravity such that every script respects the line progression. This means, Latin and Arabic will take opposite gravities and both flow top-to-bottom for example.

◆ Overline

Enumerator
OVERLINE_NONE 

No overline should be drawn.

OVERLINE_SINGLE 

Draw a single line above the ink extents of the text being underlined.

◆ RenderPart

Enumerator
RENDER_PART_FOREGROUND 

The text itself.

RENDER_PART_BACKGROUND 

The area behind the text.

RENDER_PART_UNDERLINE 

Underlines.

RENDER_PART_STRIKETHROUGH 

Strikethrough lines.

RENDER_PART_OVERLINE 

Overlines.

◆ Script

Enumerator
SCRIPT_INVALID_CODE 

A value never returned from pango_script_for_unichar().

SCRIPT_COMMON 

A character used by multiple different scripts.

SCRIPT_INHERITED 

A mark glyph that takes its script from the base glyph to which it is attached.

SCRIPT_ARABIC 

Arabic.

SCRIPT_ARMENIAN 

Armenian.

SCRIPT_BENGALI 

Bengali.

SCRIPT_BOPOMOFO 

Bopomofo.

SCRIPT_CHEROKEE 

Cherokee.

SCRIPT_COPTIC 

Coptic.

SCRIPT_CYRILLIC 

Cyrillic.

SCRIPT_DESERET 

Deseret.

SCRIPT_DEVANAGARI 

Devanagari.

SCRIPT_ETHIOPIC 

Ethiopic.

SCRIPT_GEORGIAN 

Georgian.

SCRIPT_GOTHIC 

Gothic.

SCRIPT_GREEK 

Greek.

SCRIPT_GUJARATI 

Gujarati.

SCRIPT_GURMUKHI 

Gurmukhi.

SCRIPT_HAN 

Han.

SCRIPT_HANGUL 

Hangul.

SCRIPT_HEBREW 

Hebrew.

SCRIPT_HIRAGANA 

Hiragana.

SCRIPT_KANNADA 

Kannada.

SCRIPT_KATAKANA 

Katakana.

SCRIPT_KHMER 

Khmer.

SCRIPT_LAO 

Lao.

SCRIPT_LATIN 

Latin.

SCRIPT_MALAYALAM 

Malayalam.

SCRIPT_MONGOLIAN 

Mongolian.

SCRIPT_MYANMAR 

Myanmar.

SCRIPT_OGHAM 

Ogham.

SCRIPT_OLD_ITALIC 

Old Italic.

SCRIPT_ORIYA 

Oriya.

SCRIPT_RUNIC 

Runic.

SCRIPT_SINHALA 

Sinhala.

SCRIPT_SYRIAC 

Syriac.

SCRIPT_TAMIL 

Tamil.

SCRIPT_TELUGU 

Telugu.

SCRIPT_THAANA 

Thaana.

SCRIPT_THAI 

Thai.

SCRIPT_TIBETAN 

Tibetan.

SCRIPT_CANADIAN_ABORIGINAL 

Canadian Aboriginal.

SCRIPT_YI 

Yi.

SCRIPT_TAGALOG 

Tagalog.

SCRIPT_HANUNOO 

Hanunoo.

SCRIPT_BUHID 

Buhid.

SCRIPT_TAGBANWA 

Tagbanwa.

SCRIPT_BRAILLE 

Braille.

SCRIPT_CYPRIOT 

Cypriot.

SCRIPT_LIMBU 

Limbu.

SCRIPT_OSMANYA 

Osmanya.

SCRIPT_SHAVIAN 

Shavian.

SCRIPT_LINEAR_B 

Linear B.

SCRIPT_TAI_LE 

Tai Le.

SCRIPT_UGARITIC 

Ugaritic.

SCRIPT_NEW_TAI_LUE 

New Tai Lue.

Since pangomm 1.10:
SCRIPT_BUGINESE 

Buginese.

Since pangomm 1.10:
SCRIPT_GLAGOLITIC 

Glagolitic.

Since pangomm 1.10:
SCRIPT_TIFINAGH 

Tifinagh.

Since pangomm 1.10:
SCRIPT_SYLOTI_NAGRI 

Syloti Nagri.

Since pangomm 1.10:
SCRIPT_OLD_PERSIAN 

Old Persian.

Since pangomm 1.10:
SCRIPT_KHAROSHTHI 

Kharoshthi.

Since pangomm 1.10:
SCRIPT_UNKNOWN 

An unassigned code point.

Since pangomm 1.14:
SCRIPT_BALINESE 

Balinese.

Since pangomm 1.14:
SCRIPT_CUNEIFORM 

Cuneiform.

Since pangomm 1.14:
SCRIPT_PHOENICIAN 

Phoenician.

Since pangomm 1.14:
SCRIPT_PHAGS_PA 

Phags-pa.

Since pangomm 1.14:
SCRIPT_NKO 

N'Ko.

Since pangomm 1.14:
SCRIPT_KAYAH_LI 

Kayah Li.

Since pangomm 1.20.1:
SCRIPT_LEPCHA 

Lepcha.

Since pangomm 1.20.1:
SCRIPT_REJANG 

Rejang.

Since pangomm 1.20.1:
SCRIPT_SUNDANESE 

Sundanese.

Since pangomm 1.20.1:
SCRIPT_SAURASHTRA 

Saurashtra.

Since pangomm 1.20.1:
SCRIPT_CHAM 

Cham.

Since pangomm 1.20.1:
SCRIPT_OL_CHIKI 

Ol Chiki.

Since pangomm 1.20.1:
SCRIPT_VAI 

Vai.

Since pangomm 1.20.1:
SCRIPT_CARIAN 

Carian.

Since pangomm 1.20.1:
SCRIPT_LYCIAN 

Lycian.

Since pangomm 1.20.1:
SCRIPT_LYDIAN 

Lydian.

Since pangomm 1.20.1:
SCRIPT_BATAK 

Batak.

Since pangomm 1.32:
SCRIPT_BRAHMI 

Brahmi.

Since pangomm 1.32:
SCRIPT_MANDAIC 

Mandaic.

Since pangomm 1.32:
SCRIPT_CHAKMA 

Chakma.

Since pangomm 1.32:
SCRIPT_MEROITIC_CURSIVE 

Meroitic Cursive.

Since pangomm 1.32:
SCRIPT_MEROITIC_HIEROGLYPHS 

Meroitic Hieroglyphs.

Since pangomm 1.32:
SCRIPT_MIAO 

Miao.

Since pangomm 1.32:
SCRIPT_SHARADA 

Sharada.

Since pangomm 1.32:
SCRIPT_SORA_SOMPENG 

Sora Sompeng.

Since pangomm 1.32:
SCRIPT_TAKRI 

Takri.

Since pangomm 1.32:
SCRIPT_BASSA_VAH 

Bassa.

Since pangomm 1.40:
SCRIPT_CAUCASIAN_ALBANIAN 

Caucasian Albanian.

Since pangomm 1.40:
SCRIPT_DUPLOYAN 

Duployan.

Since pangomm 1.40:
SCRIPT_ELBASAN 

Elbasan.

Since pangomm 1.40:
SCRIPT_GRANTHA 

Grantha.

Since pangomm 1.40:
SCRIPT_KHOJKI 

Kjohki.

Since pangomm 1.40:
SCRIPT_KHUDAWADI 

Khudawadi, Sindhi.

Since pangomm 1.40:
SCRIPT_LINEAR_A 

Linear A.

Since pangomm 1.40:
SCRIPT_MAHAJANI 

Mahajani.

Since pangomm 1.40:
SCRIPT_MANICHAEAN 

Manichaean.

Since pangomm 1.40:
SCRIPT_MENDE_KIKAKUI 

Mende Kikakui.

Since pangomm 1.40:
SCRIPT_MODI 

Modi.

Since pangomm 1.40:
SCRIPT_MRO 

Mro.

Since pangomm 1.40:
SCRIPT_NABATAEAN 

Nabataean.

Since pangomm 1.40:
SCRIPT_OLD_NORTH_ARABIAN 

Old North Arabian.

Since pangomm 1.40:
SCRIPT_OLD_PERMIC 

Old Permic.

Since pangomm 1.40:
SCRIPT_PAHAWH_HMONG 

Pahawh Hmong.

Since pangomm 1.40:
SCRIPT_PALMYRENE 

Palmyrene.

Since pangomm 1.40:
SCRIPT_PAU_CIN_HAU 

Pau Cin Hau.

Since pangomm 1.40:
SCRIPT_PSALTER_PAHLAVI 

Psalter Pahlavi.

Since pangomm 1.40:
SCRIPT_SIDDHAM 

Siddham.

Since pangomm 1.40:
SCRIPT_TIRHUTA 

Tirhuta.

Since pangomm 1.40:
SCRIPT_WARANG_CITI 

Warang Citi.

Since pangomm 1.40:
SCRIPT_AHOM 

Ahom.

Since pangomm 1.40:
SCRIPT_ANATOLIAN_HIEROGLYPHS 

Anatolian Hieroglyphs.

Since pangomm 1.40:
SCRIPT_HATRAN 

Hatran.

Since pangomm 1.40:
SCRIPT_MULTANI 

Multani.

Since pangomm 1.40:
SCRIPT_OLD_HUNGARIAN 

Old Hungarian.

Since pangomm 1.40:
SCRIPT_SIGNWRITING 

Signwriting.

Since pangomm 1.40:

◆ ShapeFlags

Enumerator
SHAPE_NONE 

Default value.

SHAPE_ROUND_POSITIONS 

Round glyph positions and widths to whole device units.

This option should be set if the target renderer can't do subpixel positioning of glyphs.

◆ ShowFlags

Enumerator
SHOW_NONE 

No special treatment for invisible characters.

SHOW_SPACES 

Render spaces, tabs and newlines visibly.

SHOW_LINE_BREAKS 

Render line breaks visibly.

SHOW_IGNORABLES 

Render default-ignorable Unicode characters visibly.

◆ Stretch

Enumerator
STRETCH_ULTRA_CONDENSED 

Ultra condensed width.

STRETCH_EXTRA_CONDENSED 

Extra condensed width.

STRETCH_CONDENSED 

Condensed width.

STRETCH_SEMI_CONDENSED 

Semi condensed width.

STRETCH_NORMAL 

The normal width.

STRETCH_SEMI_EXPANDED 

Semi expanded width.

STRETCH_EXPANDED 

Expanded width.

STRETCH_EXTRA_EXPANDED 

Extra expanded width.

STRETCH_ULTRA_EXPANDED 

Ultra expanded width.

◆ Style

Enumerator
STYLE_NORMAL 

The font is upright.

STYLE_OBLIQUE 

The font is slanted, but in a roman style.

STYLE_ITALIC 

The font is slanted in an italic style.

◆ TabAlign

Enumerator
TAB_LEFT 

The tab stop appears to the left of the text.

◆ Underline

Enumerator
UNDERLINE_NONE 

No underline should be drawn.

UNDERLINE_SINGLE 

A single underline should be drawn.

UNDERLINE_DOUBLE 

A double underline should be drawn.

UNDERLINE_LOW 

A single underline should be drawn at a position beneath the ink extents of the text being underlined.

This should be used only for underlining single characters, such as for keyboard accelerators. Pango::UNDERLINE_SINGLE should be used for extended portions of text.

UNDERLINE_ERROR 

A wavy underline should be drawn below.

This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4.

UNDERLINE_SINGLE_LINE 

Like PANGO_UNDERLINE_SINGLE, but drawn continuously across multiple runs.

This type of underlining is available since Pango 1.46.

UNDERLINE_DOUBLE_LINE 

Like PANGO_UNDERLINE_DOUBLE, but drawn continuously across multiple runs.

This type of underlining is available since Pango 1.46.

UNDERLINE_ERROR_LINE 

Like PANGO_UNDERLINE_ERROR, but drawn continuously across multiple runs.

This type of underlining is available since Pango 1.46.

◆ Variant

Enumerator
VARIANT_NORMAL 

A normal font.

VARIANT_SMALL_CAPS 

A font with the lower case characters replaced by smaller variants of the capital characters.

◆ Weight

Enumerator
WEIGHT_THIN 

The thin weight (= 100; Since: 1.24).

WEIGHT_ULTRALIGHT 

The ultralight weight (= 200).

WEIGHT_LIGHT 

The light weight (= 300).

WEIGHT_SEMILIGHT 

The semilight weight (= 350; Since: 1.36.7).

WEIGHT_BOOK 

The book weight (= 380; Since: 1.24).

WEIGHT_NORMAL 

The default weight (= 400).

WEIGHT_MEDIUM 

The normal weight (= 500; Since: 1.24).

WEIGHT_SEMIBOLD 

The semibold weight (= 600).

WEIGHT_BOLD 

The bold weight (= 700).

WEIGHT_ULTRABOLD 

The ultrabold weight (= 800).

WEIGHT_HEAVY 

The heavy weight (= 900).

WEIGHT_ULTRAHEAVY 

The ultraheavy weight (= 1000; Since: 1.24).

◆ WrapMode

Enumerator
WRAP_WORD 

Wrap lines at word boundaries.

WRAP_CHAR 

Wrap lines at character boundaries.

WRAP_WORD_CHAR 

Wrap lines at word boundaries, but fall back to character boundaries if there is not enough space for a full word.

Function Documentation

◆ init()

void Pango::init ( )

Initialize pangomm.

You may call this more than once. You do not need to call this if you are using Gtk::Main, because it calls it for you.

Variable Documentation

◆ SCALE

const int Pango::SCALE = 1024

◆ SCALE_LARGE

const double Pango::SCALE_LARGE = 1.2

◆ SCALE_MEDIUM

const double Pango::SCALE_MEDIUM = 1.0

◆ SCALE_SMALL

const double Pango::SCALE_SMALL = 0.8333333333333

◆ SCALE_X_LARGE

const double Pango::SCALE_X_LARGE = 1.4399999999999

◆ SCALE_X_SMALL

const double Pango::SCALE_X_SMALL = 0.6444444444444

◆ SCALE_XX_LARGE

const double Pango::SCALE_XX_LARGE = 1.728

◆ SCALE_XX_SMALL

const double Pango::SCALE_XX_SMALL = 0.5787037037037