Crate pango

source ·
Expand description

Rust Pango bindings

Rust bindings and wrappers for Pango, part of gtk-rs-core.

Pango 1.38 is the lowest supported version for the underlying library.

Minimum supported Rust version

Currently, the minimum supported Rust version is 1.56.0.

Documentation

Using

We recommend using crates from crates.io, as demonstrated here.

If you want to track the bleeding edge, use the git dependency instead:

[dependencies]
pango = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pango" }

Avoid mixing versioned and git crates like this:

# This will not compile
[dependencies]
pango = "0.13"
pango = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pango" }

See Also

License

pango is available under the MIT License, please refer to it.

Re-exports

  • pub use ffi;
  • pub use glib;

Modules

  • Traits and essential types intended for blanket imports.

Structs

Enums

  • Alignment describes how to align the lines of a Layout within the available space.
  • The AttrType distinguishes between different types of attributes.
  • An enumeration that affects baseline shifts between runs.
  • BidiType represents the bidirectional character type of a Unicode character.
  • CoverageLevel is used to indicate how well a font can represent a particular Unicode character for a particular script.
  • Direction represents a direction in the Unicode bidirectional algorithm.
  • EllipsizeMode 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.
  • Gravity represents the orientation of glyphs in a segment of text.
  • GravityHint defines how horizontal scripts should behave in a vertical context.
  • The Overline enumeration is used to specify whether text should be overlined, and if so, the type of line.
  • RenderPart defines different items to render for such purposes as setting colors.
  • The Script 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.
  • TabAlign specifies where the text appears relative to the tab stop position.
  • An enumeration that affects how Pango treats characters during shaping.
  • The Underline 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.
  • WrapMode describes how to wrap the lines of a Layout to the desired width.

Constants

Traits

Functions

Type Definitions