pub struct RenderOptions {
pub font_size: f32,
pub padding: f32,
pub font_dir: String,
pub device_pixel_ratio: f32,
}Fields§
§font_size: f32§padding: f32§font_dir: StringDirectory containing KaTeX *.ttf files (see load_all_fonts). Each file that exists is
loaded; missing files (e.g. no KaTeX_Fraktur-Bold.ttf) are skipped and that face falls back.
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