pub struct RenderConfig<'a> { /* private fields */ }Expand description
Per-run configuration used by RenderEngine::begin.
Implementations§
Source§impl<'a> RenderConfig<'a>
impl<'a> RenderConfig<'a>
Sourcepub fn with_page_range(self, range: PageRange) -> Self
pub fn with_page_range(self, range: PageRange) -> Self
Limit emitted pages to the given chapter range [start, end).
Sourcepub fn with_cache(self, cache: &'a dyn RenderCacheStore) -> Self
pub fn with_cache(self, cache: &'a dyn RenderCacheStore) -> Self
Use cache hooks for loading/storing chapter pages.
Sourcepub fn with_cancel(self, cancel: &'a dyn CancelToken) -> Self
pub fn with_cancel(self, cancel: &'a dyn CancelToken) -> Self
Attach an optional cancellation token for session operations.
Sourcepub fn with_embedded_fonts(self, enabled: bool) -> Self
pub fn with_embedded_fonts(self, enabled: bool) -> Self
Enable or disable embedded-font registration for this render run.
Disable this in constrained environments to skip EPUB font-face loading and rely on fallback font policy.
Sourcepub fn with_forced_font_family(self, family: impl Into<String>) -> Self
pub fn with_forced_font_family(self, family: impl Into<String>) -> Self
Force a single fallback family for all text shaping/layout.
This disables embedded font matching to keep measurement/rendering consistent with the requested family.
Sourcepub fn with_text_measurer(self, measurer: Arc<dyn TextMeasurer>) -> Self
pub fn with_text_measurer(self, measurer: Arc<dyn TextMeasurer>) -> Self
Attach a glyph-width measurer used by line layout.
Trait Implementations§
Source§impl<'a> Clone for RenderConfig<'a>
impl<'a> Clone for RenderConfig<'a>
Source§fn clone(&self) -> RenderConfig<'a>
fn clone(&self) -> RenderConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for RenderConfig<'a>
impl<'a> !RefUnwindSafe for RenderConfig<'a>
impl<'a> !Send for RenderConfig<'a>
impl<'a> !Sync for RenderConfig<'a>
impl<'a> Unpin for RenderConfig<'a>
impl<'a> UnsafeUnpin for RenderConfig<'a>
impl<'a> !UnwindSafe for RenderConfig<'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