pub struct RenderOptions {
pub font_size: f32,
pub padding: f32,
pub background_color: Color,
pub font_dir: String,
pub device_pixel_ratio: f32,
}Expand description
Options controlling PNG output.
Fields§
§font_size: f32§padding: f32§background_color: ColorBackground fill color for the output PNG. Set alpha to 0.0 for transparency.
font_dir: StringDirectory containing KaTeX .ttf files. Used only when embed-fonts is disabled.
device_pixel_ratio: f32Multiplies pixels-per-em (and padding) so the same layout renders at higher resolution
(e.g. 2.0 to align RaTeX PNG pixel density with Puppeteer deviceScaleFactor: 2 refs).
Trait Implementations§
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
Mutably borrows from an owned value. Read more