Expand description
Glyphon provides a simple way to render 2D text with wgpu, cosmic-text and etagere.
Re-exports§
pub use cosmic_text;pub use cosmic_text::fontdb;pub use cosmic_text::Action;pub use cosmic_text::Affinity;pub use cosmic_text::Attrs;pub use cosmic_text::AttrsList;pub use cosmic_text::AttrsOwned;pub use cosmic_text::Buffer;pub use cosmic_text::BufferLine;pub use cosmic_text::CacheKey;pub use cosmic_text::Color;pub use cosmic_text::Command;pub use cosmic_text::Cursor;pub use cosmic_text::Edit;pub use cosmic_text::Editor;pub use cosmic_text::Family;pub use cosmic_text::FamilyOwned;pub use cosmic_text::Font;pub use cosmic_text::FontSystem;pub use cosmic_text::LayoutCursor;pub use cosmic_text::LayoutGlyph;pub use cosmic_text::LayoutLine;pub use cosmic_text::LayoutRun;pub use cosmic_text::LayoutRunIter;pub use cosmic_text::Metrics;pub use cosmic_text::ShapeGlyph;pub use cosmic_text::ShapeLine;pub use cosmic_text::ShapeSpan;pub use cosmic_text::ShapeWord;pub use cosmic_text::Shaping;pub use cosmic_text::Stretch;pub use cosmic_text::Style;pub use cosmic_text::SubpixelBin;pub use cosmic_text::SwashCache;pub use cosmic_text::SwashContent;pub use cosmic_text::SwashImage;pub use cosmic_text::Weight;pub use cosmic_text::Wrap;
Structs§
- Cache
- A cache to share common resources (e.g., pipelines, layouts, shaders) between multiple text renderers.
- Custom
Glyph - A custom glyph to render
- Rasterize
Custom Glyph Request - A request to rasterize a custom glyph
- Rasterized
Custom Glyph - A rasterized custom glyph
- Resolution
- The screen resolution to use when rendering text.
- Text
Area - A text area containing text to be rendered along with its overflow behavior.
- Text
Atlas - An atlas containing a cache of rasterized glyphs that can be rendered.
- Text
Bounds - Controls the visible area of the text. Any text outside of the visible area will be clipped.
- Text
Renderer - A text renderer that uses cached glyphs to render text into an existing render pass.
- Viewport
- Controls the visible area of all text for a given renderer. Any text outside of the visible area will be clipped.
Enums§
- Color
Mode - The color mode of a
TextAtlas. - Content
Type - The type of image data contained in a rasterized glyph
- Prepare
Error - An error that occurred while preparing text for rendering.
- Render
Error - An error that occurred while rendering text.