Crate pango

source ·
Expand description

Rust Pango bindings

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

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

Minimum supported Rust version

Currently, the minimum supported Rust version is 1.70.0.



We recommend using crates from, as demonstrated here.

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

pango = { git = "", package = "pango" }

Avoid mixing versioned and git crates like this:

# This will not compile
pango = "0.13"
pango = { git = "", package = "pango" }

See Also


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


  • pub use ffi;
  • pub use glib;




  • 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.
  • BidiTypeDeprecated
    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.




Type Definitions