pangocffi
pangocffi is a CFFI-based set of Python bindings for pango.
pangocffi on its own is not that useful, since it depends on a PangoFontMap being declared against the PangoContext. PangoFontMap instances can easily be retrieved from libraries such as PangoCairo, PangoXft, PangoFT2, and PangoWin32 (See gnome’s documentation ‘Rendering with Pango’ for a list of rendering engines).
See pangocairocffi for bindings that allow you to render pango objects with cairo.
The bindings are currently not fully implemented. Feel free to make a pull request to contribute!
Documentation
- Overview
- Python API reference
- Rendering
- Glyph Storage
- Fonts
- Text Attributes
- Attribute
Attribute
Attribute.start_index
Attribute.end_index
Attribute.from_family()
Attribute.from_style()
Attribute.from_variant()
Attribute.from_stretch()
Attribute.from_weight()
Attribute.from_size()
Attribute.from_size_absolute()
Attribute.from_font_desc()
Attribute.from_foreground_color()
Attribute.from_background_color()
Attribute.from_strikethrough()
Attribute.from_strikethrough_color()
Attribute.from_underline()
Attribute.from_underline_color()
Attribute.from_shape()
Attribute.from_scale()
Attribute.from_rise()
Attribute.from_letter_spacing()
Attribute.from_fallback()
Attribute.from_gravity()
Attribute.from_gravity_hints()
Attribute.from_font_features()
Attribute.from_foreground_alpha()
Attribute.from_background_alpha()
- AttrList
- Attribute
- Tab Stops
- Text Attribute Markup
- Layout Objects
- Layout
- Layout Iterator
LayoutIter
LayoutIter.next_run()
LayoutIter.next_char()
LayoutIter.next_cluster()
LayoutIter.next_line()
LayoutIter.at_last_line()
LayoutIter.get_index()
LayoutIter.get_baseline()
LayoutIter.get_run()
LayoutIter.get_char_extents()
LayoutIter.get_cluster_extents()
LayoutIter.get_run_extents()
LayoutIter.get_line_yrange()
LayoutIter.get_line_extents()
LayoutIter.get_layout_extents()
- Layout Line
- Layout Run
- Layout Modes
- Scripts and Languages
- Underlined Text
- Bidirectional Text
- Vertical Text
- Low Level Functionality
- CFFI API
- Binding progress
- Changelog
- Contributing