Expand description
Shared rendering state and constants.
Constants§
Functions§
- is_rtl
- lang_
is_ rtl - Whether a BCP-47 language code (e.g. “ar-SA”, “en-US”) resolves to an RTL
script. Complements
crate::rendering::text_render::Script::is_rtl, which works on text content; this works on a declared language tag. - set_rtl
- slice_
as_ bytes - Reinterpret a slice of any type as a shared
&[u8]. - slice_
as_ bytes_ mut - Reinterpret a mutable slice of any type as a
&mut [u8].