Expand description
oxitext-core — Core traits and value types for OxiText.
This crate provides the shared data types used throughout the OxiText
pipeline: ShapedGlyph, ShapedRun, PositionedGlyph, Bitmap,
ColorBitmap, LcdBitmap, RenderOutput,
LayoutConstraints, TextStyle, FlowDirection, and OxiTextError.
Structs§
- Bitmap
- A greyscale glyph bitmap.
- Color
Bitmap - An RGBA color glyph bitmap.
- Decoration
- Text decorations applied to a run: underline, overline, strikethrough.
- Decoration
Line - A single text decoration line (underline, overline, or strikethrough).
- Decoration
Rect - A positioned decoration rectangle ready to be composited onto the output canvas.
- Font
Vertical Metrics - Font-wide vertical metrics needed to compute line height, in font design units.
- Glyph
Cluster - A group of
ShapedGlyphs that together form a single user-perceived grapheme cluster (e.g. a base letter plus combining marks, or an emoji ZWJ sequence rendered as one glyph). - Glyph
Metrics - Per-glyph metrics usable for layout without rasterising.
- Inline
Object - An inline object (image, custom widget) that can be positioned inline with text. The layout engine treats it as a glyph with known advance and baseline offset.
- Layout
Constraints - Layout constraints for the layouter.
- LcdBitmap
- An LCD subpixel bitmap.
- Line
Spacing - Line spacing configuration.
- Paragraph
Style - Paragraph-level layout style.
- Positioned
Glyph - A glyph positioned on the layout canvas.
- Positioned
Inline Object - A positioned inline object from a layout pass.
- Rgba8
- An sRGB color with straight (non-premultiplied) alpha.
- Shaped
Glyph - A glyph produced by the shaper.
- Shaped
Run - A run of shaped glyphs sharing a single font face.
- TextRun
- A styled span of text within a paragraph.
- Text
Style - Text rendering style.
Enums§
- Flow
Direction - Text flow direction for a rendering run.
- OxiText
Error - Errors returned by the OxiText pipeline.
- Render
Output - Unified per-glyph render output.
- Text
Alignment - Horizontal text alignment within the layout’s line box.
- Text
Decoration - A text decoration style applied to a run of text.
- Vertical
Position - Vertical text positioning for subscript/superscript effects.
- Writing
Mode - CSS Writing Modes Level 4
writing-mode.