pangomm 2.50.2
|
Classes | |
class | Pango::BaselineShift_Wrapper |
Wrapper for enum BaselineShift. More... | |
class | Pango::Weight_Wrapper |
Wrapper for enum Weight. More... | |
Typedefs | |
using | Pango::BaselineShift = BaselineShift_Wrapper::BaselineShift |
BaselineShift enumerators are scoped by the wrapper class and can be implicitly converted to int. | |
using | Pango::Weight = Weight_Wrapper::Weight |
Weight enumerators are scoped by the wrapper class and can be implicitly converted to int. | |
BaselineShift enumerators are scoped by the wrapper class and can be implicitly converted to int.
using Pango::Weight = Weight_Wrapper::Weight |
Weight enumerators are scoped by the wrapper class and can be implicitly converted to int.
|
strong |
Pango::Alignment
describes how to align the lines of a Pango::Layout
within the available space.
If the Pango::Layout
is set to justify using Pango::Layout::set_justify(), this only has effect for partial lines.
See Pango::Layout::set_auto_dir() for how text direction affects the interpretation of `PangoAlignment values.
|
strong |
The Pango::AttrType
distinguishes between different types of attributes.
Along with the predefined values, it is possible to allocate additional values for custom attributes using attr_type_register(). The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description.
Enumerator | |
---|---|
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. |
LANGUAGE | |
FAMILY | Font family name list (Pango::AttrString). The font family is specified. |
STYLE | Font slant style (Pango::AttrInt). The font style is specified. |
WEIGHT | Font weight (Pango::AttrInt). The font weight is specified. |
VARIANT | Font variant (normal or small caps) (Pango::AttrInt). The font variant is specified. |
STRETCH | Font stretch (Pango::AttrInt). The font stretch is specified. |
SIZE | Font size in points scaled by Pango::SCALE (Pango::AttrInt). The font size is specified. |
FONT_DESC | Font description (Pango::AttrFontDesc). |
FOREGROUND | Foreground color (Pango::AttrColor). |
BACKGROUND | Background color (Pango::AttrColor). |
UNDERLINE | Whether the text has an underline (Pango::AttrInt). |
STRIKETHROUGH | Whether the text is struck-through (Pango::AttrInt). |
RISE | Baseline displacement (Pango::AttrInt). |
SHAPE | Shape (Pango::AttrShape). |
SCALE_FACTOR | Font size scale factor (Pango::AttrFloat). |
FALLBACK | Whether fallback is enabled (Pango::AttrInt). |
LETTER_SPACING | Letter spacing (Pango::PangoAttrInt). |
UNDERLINE_COLOR | Underline color (Pango::AttrColor). |
STRIKETHROUGH_COLOR | Strikethrough color (Pango::AttrColor). |
ABSOLUTE_SIZE | Font size in pixels scaled by Pango::SCALE (Pango::AttrInt). |
GRAVITY | Base text gravity (Pango::AttrInt). The font gravity is specified (Since: 1.16.). |
GRAVITY_HINT | Gravity hint (Pango::AttrInt). |
FONT_FEATURES | OpenType font features (Pango::AttrFontFeatures). |
FOREGROUND_ALPHA | Foreground alpha (Pango::AttrInt). |
BACKGROUND_ALPHA | Background alpha (Pango::AttrInt). |
ALLOW_BREAKS | Whether breaks are allowed (Pango::AttrInt). |
SHOW | How to render invisible characters (Pango::AttrInt). |
INSERT_HYPHENS | Whether to insert hyphens at intra-word line breaks (Pango::AttrInt). |
OVERLINE | Whether the text has an overline (Pango::AttrInt). |
OVERLINE_COLOR | Overline color (Pango::AttrColor). |
LINE_HEIGHT | Line height factor (Pango::AttrFloat). |
ABSOLUTE_LINE_HEIGHT | Line height (Pango::AttrInt). |
TEXT_TRANSFORM | |
WORD | Override segmentation to classify the range of the attribute as a single word (Pango::AttrInt). Wrap lines at word boundaries. |
SENTENCE | Override segmentation to classify the range of the attribute as a single sentence (Pango::AttrInt). |
BASELINE_SHIFT | Baseline displacement (Pango::AttrInt). |
FONT_SCALE | Font-relative size change (Pango::AttrInt). |
|
strong |
Pango::Direction
represents a direction in the Unicode bidirectional algorithm.
Not every value in this enumeration makes sense for every usage of Pango::Direction
; for example, the return value of unichar_direction() and find_base_dir() cannot be Pango::Direction::WEAK_LTR or Pango::Direction::WEAK_RTL, since every character is either neutral or has a strong direction; on the other hand Pango::Direction::NEUTRAL doesn't make sense to pass to itemize_with_base_dir().
The Pango::Direction::TTB_LTR, Pango::Direction::TTB_RTL values come from an earlier interpretation of this enumeration as the writing direction of a block of text and are no longer used; See Pango::Gravity
for how vertical text is handled in Pango.
If you are interested in text direction, you should really use fribidi directly. Pango::Direction
is only retained because it is used in some public apis.
Enumerator | |
---|---|
LTR | A strong left-to-right direction. |
RTL | A strong right-to-left direction. |
TTB_LTR | Deprecated value; treated the same as Pango::Direction::RTL. |
TTB_RTL | Deprecated value; treated the same as Pango::Direction::LTR. |
WEAK_LTR | A weak left-to-right direction. |
WEAK_RTL | A weak right-to-left direction. |
NEUTRAL | No direction specified. |
|
strong |
Pango::EllipsizeMode
describes what sort of ellipsization should be applied to text.
In the ellipsization process characters are removed from the text in order to make it fit to a given width and replaced with an ellipsis.
Enumerator | |
---|---|
NONE | |
START | Omit characters at the start of the text. |
MIDDLE | Omit characters in the middle of the text. |
END | Omit characters at the end of the text. |
|
strong |
The bits in a Pango::FontMask
correspond to the set fields in a Pango::FontDescription
.
FontMask operator|(FontMask, FontMask)
FontMask operator&(FontMask, FontMask)
FontMask operator^(FontMask, FontMask)
FontMask operator~(FontMask)
FontMask& operator|=(FontMask&, FontMask)
FontMask& operator&=(FontMask&, FontMask)
FontMask& operator^=(FontMask&, FontMask)
Enumerator | |
---|---|
FAMILY | |
STYLE | |
VARIANT | |
WEIGHT | |
STRETCH | |
SIZE | |
GRAVITY | |
VARIATIONS | OpenType font variations are specified (Since: 1.42). |
|
strong |
An enumeration that affects font sizes for superscript and subscript positioning and for (emulated) Small Caps.
|
strong |
Pango::Gravity
represents the orientation of glyphs in a segment of text.
This is useful when rendering vertical text layouts. In those situations, the layout is rotated using a non-identity Pango::Matrix, and then glyph orientation is controlled using Pango::Gravity
.
Not every value in this enumeration makes sense for every usage of Pango::Gravity
; for example, Pango::Gravity::AUTO only can be passed to Pango::Context::set_base_gravity() and can only be returned by Pango::Context::get_base_gravity().
See also: Pango::GravityHint
|
strong |
Pango::GravityHint
defines how horizontal scripts should behave in a vertical context.
That is, English excerpts in a vertical paragraph for example.
See also Pango::Gravity
|
strong |
Pango::CoverageLevel
is used to indicate how well a font can represent a particular Unicode character for a particular script.
Since 1.44, only Pango::Coverage::Level::NONE and Pango::Coverage::Level::EXACT will be returned.
|
strong |
The Pango::Overline
enumeration is used to specify whether text should be overlined, and if so, the type of line.
Enumerator | |
---|---|
NONE | |
SINGLE |
|
strong |
|
strong |
The Pango::Script
enumeration identifies different writing systems.
The values correspond to the names as defined in the Unicode standard. See Unicode Standard Annex 24: Script names
Note that this enumeration is deprecated and will not be updated to include values in newer versions of the Unicode standard. Applications should use the UnicodeScript
enumeration instead, whose values are interchangeable with Pango::Script
.
|
strong |
Flags influencing the shaping process.
Pango::ShapeFlags
can be passed to pango_shape_with_flags().
ShapeFlags operator|(ShapeFlags, ShapeFlags)
ShapeFlags operator&(ShapeFlags, ShapeFlags)
ShapeFlags operator^(ShapeFlags, ShapeFlags)
ShapeFlags operator~(ShapeFlags)
ShapeFlags& operator|=(ShapeFlags&, ShapeFlags)
ShapeFlags& operator&=(ShapeFlags&, ShapeFlags)
ShapeFlags& operator^=(ShapeFlags&, ShapeFlags)
Enumerator | |
---|---|
NONE | |
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. |
|
strong |
These flags affect how Pango treats characters that are normally not visible in the output.
ShowFlags operator|(ShowFlags, ShowFlags)
ShowFlags operator&(ShowFlags, ShowFlags)
ShowFlags operator^(ShowFlags, ShowFlags)
ShowFlags operator~(ShowFlags)
ShowFlags& operator|=(ShowFlags&, ShowFlags)
ShowFlags& operator&=(ShowFlags&, ShowFlags)
ShowFlags& operator^=(ShowFlags&, ShowFlags)
Enumerator | |
---|---|
NONE | |
SPACES | Render spaces, tabs and newlines visibly. |
LINE_BREAKS | Render line breaks visibly. |
IGNORABLES | Render default-ignorable Unicode characters visibly. |
|
strong |
An enumeration specifying the width of the font relative to other designs within a family.
|
strong |
|
strong |
Pango::TabAlign
specifies where the text appears relative to the tab stop position.
Support for tab alignments other than Pango::TabAlign::LEFT was added in Pango 1.50.
Enumerator | |
---|---|
LEFT | |
RIGHT | |
CENTER | |
DECIMAL | Text before the first '. ' appears to the left of the tab stop position (until the available space is filled), the rest to the right. |
|
strong |
An enumeration that affects how Pango treats characters during shaping.
Enumerator | |
---|---|
NONE | |
LOWERCASE | Display letters and numbers as lowercase. |
UPPERCASE | Display letters and numbers as uppercase. |
CAPITALIZE | Display the first character of a word in titlecase. |
|
strong |
The Pango::Underline
enumeration is used to specify whether text should be underlined, and if so, the type of underlining.
Enumerator | |
---|---|
NONE | No underline should be drawn. No ellipsization. Default value. Leave the font size unchanged. Leave text unchanged. No special treatment for invisible characters. No overline should be drawn. |
SINGLE | A single underline should be drawn. Draw a single line above the ink extents of the text being underlined. |
DOUBLE | A double underline should be drawn. |
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. |
ERROR | An underline indicating an error should be drawn below. The exact style of rendering is up to the |
SINGLE_LINE | Like PANGO_UNDERLINE_SINGLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. |
DOUBLE_LINE | Like PANGO_UNDERLINE_DOUBLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. |
ERROR_LINE | Like PANGO_UNDERLINE_ERROR, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. |
|
strong |
An enumeration specifying capitalization variant of the font.
An enumeration specifying the weight (boldness) of a font.
This is a numerical value ranging from 100 to 1000, but there are some predefined values.
|
strong |
Pango::WrapMode
describes how to wrap the lines of a Pango::Layout
to the desired width.
For PANGO_WRAP_WORD, Pango uses break opportunities that are determined by the Unicode line breaking algorithm. For PANGO_WRAP_CHAR, Pango allows breaking at grapheme boundaries that are determined by the Unicode text segmentation algorithm.
Enumerator | |
---|---|
WORD | |
CHAR | Wrap lines at character boundaries. |
WORD_CHAR | Wrap lines at word boundaries, but fall back to character boundaries if there is not enough space for a full word. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |