Crate avenger_glyphon
source ·Expand description
Glyphon provides a simple way to render 2D text with wpgu, cosmic-text and etagere.
Re-exports§
pub use cosmic_text;
pub use cosmic_text::fontdb;
Structs§
- Text attributes
- List of text attributes to apply to a line
- An owned version of
Attrs
- A buffer of text that is shaped and laid out
- A line (or paragraph) of text that is shaped and laid out
- Key for building a glyph cache
- Text color
- Current cursor location
- A wrapper of
Buffer
for easy editing - A font
- Access to the system fonts.
- The position of a cursor within a
Buffer
. - A laid out glyph
- A line of laid out glyphs
- A line of visible text for rendering
- An iterator of visible text lines, see
LayoutRun
- Metrics of text
- The screen resolution to use when rendering text.
- A shaped glyph
- A shaped line (or paragraph)
- A shaped span (for bidirectional processing)
- A shaped word (for word wrapping)
- Cache for rasterizing with the swash scaler
- Scaled glyph image.
- A text area containing text to be rendered along with its overflow behavior.
- An atlas containing a cache of rasterized glyphs that can be rendered.
- Controls the visible area of the text. Any text outside of the visible area will be clipped.
- A text renderer that uses cached glyphs to render text into an existing render pass.
- Specifies the weight of glyphs in the font, their degree of blackness or stroke thickness.
Enums§
- An action to perform on an
Editor
- Whether to associate cursors placed at a boundary between runs with the run before or after it.
- The color mode of an [
Atlas
]. - Path command.
- A font family.
- An owned version of
Family
- An error that occurred while preparing text for rendering.
- An error that occurred while rendering text.
- The shaping strategy of some text.
- A face width.
- Allows italic or oblique faces to be selected.
- Binning of subpixel position for cache optimization
- Content of a scaled glyph image.
- Wrapping mode
Traits§
- A trait to allow easy replacements of
Editor
, likeSyntaxEditor