pub struct RenderOptions {
pub glyph_painting: GlyphPainting,
pub substitutes: SubstituteSource,
pub oc: Option<Arc<OcState>>,
pub cache: Option<Arc<RenderCache>>,
}Expand description
Options controlling a single page render.
Fields§
§glyph_painting: GlyphPaintingWhich font programs the rasterizer will paint.
substitutes: SubstituteSourceWhere Full-tier substitution draws replacement faces from. Ignored
at every other tier.
oc: Option<Arc<OcState>>The document’s optional-content visibility (ISO 32000-1 §8.11):
content in groups the default configuration turns off is not
painted, counted in RenderReport::hidden. The synchronous entry
points fill this from the document when it is None; an
asynchronous caller builds it itself (e.g.
AsyncDocument::oc_state), and leaving it None there renders
every layer.
cache: Option<Arc<RenderCache>>Fonts loaded once for the document instead of once per page: a
caller rendering a whole document passes one RenderCache to
every page, and each font program — outline parsing included —
loads once. None keeps every load page-local. Keyed by the font
dictionary’s object reference, so identical resource names on
different pages never collide, exactly like text extraction’s
FontCache.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§fn default() -> RenderOptions
fn default() -> RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more