Crate pangocairo
source ·Expand description
Rust PangoCairo bindings
Rust bindings and wrappers for PangoCairo, part of gtk-rs-core.
PangoCairo 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
.
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]
pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pangocairo" }
Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
pangocairo = "0.13"
pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pangocairo" }
See Also
License
pangocairo is available under the MIT License, please refer to it.
Re-exports
Modules
Structs
Font
is an interface exported by fonts for use with Cairo.FontMap
is an interface exported by font maps for use with Cairo.
Functions
- Gets the resolution for the context.
- Sets the font options used when rendering text with this context.
- Sets the resolution for the context.
- Creates a context object set up to match the current transformation and target surface of the Cairo context.
- Creates a layout object set up to match the current transformation and target surface of the Cairo context.
- Add a squiggly line to the current path in the specified cairo context that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
- Adds the glyphs in
glyphs
to the current path in the specified cairo context. - Adds the text in
pango::LayoutLine
to the current path in the specified cairo context. - Adds the text in a
pango::Layout
to the current path in the specified cairo context. - Draw a squiggly line in the specified cairo context that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
- Draws the glyphs in
glyph_item
in the specified cairo context, - Draws the glyphs in
glyphs
in the specified cairo context. - Draws a
pango::Layout
in the specified cairo context. - Draws a
pango::LayoutLine
in the specified cairo context. - Updates a
pango::Context
previously created for use with Cairo to match the current transformation and target surface of a Cairo context. - Updates the private
pango::Context
of apango::Layout
created with [funccreate_layout
] to match the current transformation and target surface of a Cairo context.