Crate pango[−][src]
Expand description
Rust Pango bindings
This library contains safe Rust bindings for Pango. It is a part of gtk-rs.
Pango 1.38 is the lowest supported version for the underlying library.
Re-exports
pub use ffi; | |
pub use glib; | |
pub use crate::analysis::Analysis; | |
pub use crate::attr_class::AttrClass; | |
pub use crate::language::Language; | |
pub use crate::layout::HitPosition; | |
pub use crate::rectangle::Rectangle; | |
pub use glyph::GlyphGeometry; | |
pub use glyph::GlyphInfo; |
Modules
analysis | |
attr_class | |
attr_iterator | |
attr_list | |
attribute | |
functions | |
glyph | |
item | |
language | |
layout | |
prelude | Traits and essential types inteded for blanket imports. |
rectangle |
Structs
AttrIterator | The |
AttrList | The |
Attribute | The |
Color | The |
Context | The |
Coverage | The |
Font | The |
FontDescription | The |
FontFace | The |
FontFamily | The |
FontMap | The |
FontMask | The bits in a |
FontMetrics | A |
Fontset | A |
FontsetSimple |
|
GlyphItem | A |
GlyphItemIter | A |
GlyphString | The |
Item | The |
Layout | The |
LayoutIter | A |
LayoutLine | The |
Matrix | A structure specifying a transformation between user-space coordinates and device coordinates. The transformation is given by |
Renderer |
|
ShapeFlags | Flags influencing the shaping process.
These can be passed to |
ShowFlags | These flags affect how Pango treats characters that are normally not visible in the output. |
TabArray | A |
Enums
Alignment | A |
AttrType | The |
BidiType | The |
CoverageLevel | Used to indicate how well a font can represent a particular Unicode character point for a particular script. |
Direction | The |
EllipsizeMode | The |
Gravity | The |
GravityHint | The |
Overline | v1_46 The |
RenderPart |
|
Script | The |
Stretch | An enumeration specifying the width of the font relative to other designs within a family. |
Style | An enumeration specifying the various slant styles possible for a font. |
TabAlign | A |
Underline | The |
Variant | An enumeration specifying capitalization variant of the font. |
Weight | 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: |
WrapMode | A |
Constants
NONE_FONT | |
NONE_FONTSET | |
NONE_FONT_FACE | |
NONE_FONT_FAMILY | |
NONE_FONT_MAP | |
NONE_RENDERER | |
SCALE | |
SCALE_LARGE | The scale factor for one magnification step (1.2). |
SCALE_MEDIUM | The scale factor for normal size (1.0). |
SCALE_SMALL | The scale factor for one shrinking step (1 / 1.2). |
SCALE_XX_LARGE | The scale factor for three magnification steps (1.2 * 1.2 * 1.2). |
SCALE_XX_SMALL | The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)). |
SCALE_X_LARGE | The scale factor for two magnification steps (1.2 * 1.2). |
SCALE_X_SMALL | The scale factor for two shrinking steps (1 / (1.2 * 1.2)). |
Functions
extents_to_pixels | Converts extents from Pango units to device units, dividing by the
|
find_base_dir | Searches a string the first character that has a strong direction, according to the Unicode bidirectional algorithm. |
find_paragraph_boundary | Locates a paragraph boundary in |
is_zero_width | Checks |
itemize | Breaks a piece of text into segments with consistent
directional level and shaping engine. Each byte of |
itemize_with_base_dir | Like |
parse_markup | Parses marked-up text (see |
parse_stretch | Parses a font stretch. The allowed values are “ultra_condensed”, “extra_condensed”, “condensed”, “semi_condensed”, “normal”, “semi_expanded”, “expanded”, “extra_expanded” and “ultra_expanded”. Case variations are ignored and the ‘_’ characters may be omitted. |
parse_style | Parses a font style. The allowed values are “normal”, “italic” and “oblique”, case variations being ignored. |
parse_variant | Parses a font variant. The allowed values are “normal” and “smallcaps” or “small_caps”, case variations being ignored. |
parse_weight | Parses a font weight. The allowed values are “heavy”, “ultrabold”, “bold”, “normal”, “light”, “ultraleight” and integers. Case variations are ignored. |
quantize_line_geometry | Quantizes the thickness and position of a line, typically an
underline or strikethrough, to whole device pixels, that is integer
multiples of |
reorder_items | From a list of items in logical order and the associated directional levels, produce a list in visual order. The original list is unmodified. |
shape | Given a segment of text and the corresponding
|
shape_full | Given a segment of text and the corresponding
|
shape_with_flags | v1_44 Given a segment of text and the corresponding
|
unichar_direction | Determines the inherent direction of a character; either
|
units_from_double | Converts a floating-point number to Pango units: multiplies
it by |
units_to_double | Converts a number in Pango units to floating-point: divides
it by |
version | This is similar to the macro |
version_check | Checks that the Pango library in use is compatible with the
given version. Generally you would pass in the constants
|
version_string | This is similar to the macro |
Type Definitions
Glyph | |
GlyphUnit | |
LayoutRun |