Crate ribir_text
source ·Expand description
A tiny low level text processing library dedicate to Ribir, use to reorder, shape and do simple layout for text. It’s focus
Some detail processing learn from usvg
Re-exports
pub use text_reorder::TextReorder;
Modules
Structs
Em
is relative length unit relative toPixel
. We stipulate Em(1.) equal to Pixel(16.)- Encapsulates the font properties of font face.
- Specifies the weight of glyphs in the font, their degree of blackness or stroke thickness.
- `Pixels is an absolute length unit and relative to the view device
- Do simple text typography and cache it.
Enums
- A font family.
- The size of font.
Pixels is an absolute length unit and relative to the view device, and
Emis relative length unit relative to
Pixel`. We stipulate FontSize::Em(1.) equal to FontSize::Pixel(16.) - A font width.
- Allows italic or oblique faces to be selected.
- Horizontal Alignment
Constants
- Unit for convert between pixel and em.