pub struct ShapeRequest<'a> {
pub font: FontId,
pub text: &'a str,
pub direction: Direction,
pub source: Option<ByteSpan>,
pub script: Option<[u8; 4]>,
pub features: Vec<ShapeFeature>,
}Expand description
Text shaping request.
Fields§
§font: FontIdFont to use for shaping, identified by its FontId.
text: &'a strInput text to shape.
direction: DirectionText direction for the buffer.
source: Option<ByteSpan>Source span for cluster mapping.
script: Option<[u8; 4]>OpenType script tag override, e.g. *b"math", for features under the math script.
features: Vec<ShapeFeature>OpenType features to apply during shaping, e.g. ssty=1.
Trait Implementations§
Source§impl<'a> Clone for ShapeRequest<'a>
impl<'a> Clone for ShapeRequest<'a>
Source§impl<'a> Debug for ShapeRequest<'a>
impl<'a> Debug for ShapeRequest<'a>
impl<'a> Eq for ShapeRequest<'a>
Source§impl<'a> PartialEq for ShapeRequest<'a>
impl<'a> PartialEq for ShapeRequest<'a>
impl<'a> StructuralPartialEq for ShapeRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShapeRequest<'a>
impl<'a> RefUnwindSafe for ShapeRequest<'a>
impl<'a> Send for ShapeRequest<'a>
impl<'a> Sync for ShapeRequest<'a>
impl<'a> Unpin for ShapeRequest<'a>
impl<'a> UnsafeUnpin for ShapeRequest<'a>
impl<'a> UnwindSafe for ShapeRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more