Skip to main content

Crate oxitext_core

Crate oxitext_core 

Source
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.
ColorBitmap
An RGBA color glyph bitmap.
Decoration
Text decorations applied to a run: underline, overline, strikethrough.
DecorationLine
A single text decoration line (underline, overline, or strikethrough).
DecorationRect
A positioned decoration rectangle ready to be composited onto the output canvas.
FontVerticalMetrics
Font-wide vertical metrics needed to compute line height, in font design units.
GlyphCluster
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).
GlyphMetrics
Per-glyph metrics usable for layout without rasterising.
InlineObject
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.
LayoutConstraints
Layout constraints for the layouter.
LcdBitmap
An LCD subpixel bitmap.
LineSpacing
Line spacing configuration.
ParagraphStyle
Paragraph-level layout style.
PositionedGlyph
A glyph positioned on the layout canvas.
PositionedInlineObject
A positioned inline object from a layout pass.
Rgba8
An sRGB color with straight (non-premultiplied) alpha.
ShapedGlyph
A glyph produced by the shaper.
ShapedRun
A run of shaped glyphs sharing a single font face.
TextRun
A styled span of text within a paragraph.
TextStyle
Text rendering style.

Enums§

FlowDirection
Text flow direction for a rendering run.
OxiTextError
Errors returned by the OxiText pipeline.
RenderOutput
Unified per-glyph render output.
TextAlignment
Horizontal text alignment within the layout’s line box.
TextDecoration
A text decoration style applied to a run of text.
VerticalPosition
Vertical text positioning for subscript/superscript effects.
WritingMode
CSS Writing Modes Level 4 writing-mode.