pangomm
2.50.1
|
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. More... | |
using | Pango::Weight = Weight_Wrapper::Weight |
Weight enumerators are scoped by the wrapper class and can be implicitly converted to int. More... | |
using Pango::BaselineShift = typedef BaselineShift_Wrapper::BaselineShift |
BaselineShift enumerators are scoped by the wrapper class and can be implicitly converted to int.
using Pango::Weight = typedef Weight_Wrapper::Weight |
Weight enumerators are scoped by the wrapper class and can be implicitly converted to int.
|
strong |
PangoAlignment
describes how to align the lines of a PangoLayout
within the available space.
If the PangoLayout
is set to justify using [method Pango.Layout.set_justify], this only has effect for partial lines.
See [method Pango.Layout.set_auto_dir] for how text direction affects the interpretation of `PangoAlignment values.
|
strong |
The PangoAttrType
distinguishes between different types of attributes.
Along with the predefined values, it is possible to allocate additional values for custom attributes using [func AttrType.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 | Language ([struct Pango.AttrLanguage]). |
FAMILY | Font family name list ([struct Pango.AttrString]). The font family is specified. |
STYLE | Font slant style ([struct Pango.AttrInt]). The font style is specified. |
WEIGHT | Font weight ([struct Pango.AttrInt]). The font weight is specified. |
VARIANT | Font variant (normal or small caps) ([struct Pango.AttrInt]). The font variant is specified. |
STRETCH | Font stretch ([struct Pango.AttrInt]). The font stretch is specified. |
SIZE | Font size in points scaled by Pango::SCALE ([struct Pango.AttrInt]). The font size is specified. |
FONT_DESC | Font description ([struct Pango.AttrFontDesc]). |
FOREGROUND | Foreground color ([struct Pango.AttrColor]). |
BACKGROUND | Background color ([struct Pango.AttrColor]). |
UNDERLINE | Whether the text has an underline ([struct Pango.AttrInt]). |
STRIKETHROUGH | Whether the text is struck-through ([struct Pango.AttrInt]). |
RISE | Baseline displacement ([struct Pango.AttrInt]). |
SHAPE | Shape ([struct Pango.AttrShape]). |
SCALE_FACTOR | Font size scale factor ([struct Pango.AttrFloat]). |
FALLBACK | Whether fallback is enabled ([struct Pango.AttrInt]). |
LETTER_SPACING | Letter spacing ([struct PangoAttrInt]). |
UNDERLINE_COLOR | Underline color ([struct Pango.AttrColor]). |
STRIKETHROUGH_COLOR | Strikethrough color ([struct Pango.AttrColor]). |
ABSOLUTE_SIZE | Font size in pixels scaled by Pango::SCALE ([struct Pango.AttrInt]). |
GRAVITY | Base text gravity ([struct Pango.AttrInt]). The font gravity is specified (Since: 1.16.). |
GRAVITY_HINT | Gravity hint ([struct Pango.AttrInt]). |
FONT_FEATURES | OpenType font features ([struct Pango.AttrFontFeatures]). |
FOREGROUND_ALPHA | Foreground alpha ([struct Pango.AttrInt]). |
BACKGROUND_ALPHA | Background alpha ([struct Pango.AttrInt]). |
ALLOW_BREAKS | Whether breaks are allowed ([struct Pango.AttrInt]). |
SHOW | How to render invisible characters ([struct Pango.AttrInt]). |
INSERT_HYPHENS | Whether to insert hyphens at intra-word line breaks ([struct Pango.AttrInt]). |
OVERLINE | Whether the text has an overline ([struct Pango.AttrInt]). |
OVERLINE_COLOR | Overline color ([struct Pango.AttrColor]). |
LINE_HEIGHT | Line height factor ([struct Pango.AttrFloat]). |
ABSOLUTE_LINE_HEIGHT | Line height ([struct Pango.AttrInt]). |
TEXT_TRANSFORM | |
WORD | Override segmentation to classify the range of the attribute as a single word ([struct Pango.AttrInt]). Wrap lines at word boundaries. |
SENTENCE | Override segmentation to classify the range of the attribute as a single sentence ([struct Pango.AttrInt]). |
BASELINE_SHIFT | Baseline displacement ([struct Pango.AttrInt]). |
FONT_SCALE | Font-relative size change ([struct Pango.AttrInt]). |
|
strong |
PangoDirection
represents a direction in the Unicode bidirectional algorithm.
Not every value in this enumeration makes sense for every usage of PangoDirection
; for example, the return value of [func unichar_direction] and [func 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 [func 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 PangoGravity
for how vertical text is handled in Pango.
If you are interested in text direction, you should really use fribidi directly. PangoDirection
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 |
PangoEllipsizeMode
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 PangoFontMask
correspond to the set fields in a PangoFontDescription
.
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 |
PangoGravity
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 [struct Pango.Matrix], and then glyph orientation is controlled using PangoGravity
.
Not every value in this enumeration makes sense for every usage of PangoGravity
; for example, Pango::Gravity::AUTO only can be passed to [method Pango.Context.set_base_gravity] and can only be returned by [method Pango.Context.get_base_gravity].
See also: [enum Pango.GravityHint]
|
strong |
PangoGravityHint
defines how horizontal scripts should behave in a vertical context.
That is, English excerpts in a vertical paragraph for example.
See also [enum Pango.Gravity]
|
strong |
PangoCoverageLevel
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 |
|
strong |
|
strong |
The PangoScript
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 GUnicodeScript
enumeration instead, whose values are interchangeable with PangoScript
.
|
strong |
Flags influencing the shaping process.
PangoShapeFlags
can be passed to [func 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 |
PangoTabAlign
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 PangoUnderline
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 |
PangoWrapMode
describes how to wrap the lines of a PangoLayout
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 |