#[repr(C)]pub struct SvgParseOptions {
pub relative_image_path: OptionAzString,
pub dpi: f32,
pub default_font_family: AzString,
pub font_size: f32,
pub languages: StringVec,
pub shape_rendering: ShapeRendering,
pub text_rendering: TextRendering,
pub image_rendering: ImageRendering,
pub keep_named_groups: bool,
pub fontdb: FontDatabase,
}
Fields§
§relative_image_path: OptionAzString
SVG image path. Used to resolve relative image paths.
dpi: f32
Target DPI. Impact units conversion. Default: 96.0
default_font_family: AzString
Default font family. Will be used when no font-family attribute is set in the SVG. Default: Times New Roman
font_size: f32
A default font size. Will be used when no font-size attribute is set in the SVG. Default: 12
languages: StringVec
A list of languages. Will be used to resolve a systemLanguage conditional attribute. Format: en, en-US. Default: [en]
shape_rendering: ShapeRendering
Specifies the default shape rendering method. Will be used when an SVG element’s shape-rendering property is set to auto. Default: GeometricPrecision
text_rendering: TextRendering
Specifies the default text rendering method. Will be used when an SVG element’s text-rendering property is set to auto. Default: OptimizeLegibility
image_rendering: ImageRendering
Specifies the default image rendering method. Will be used when an SVG element’s image-rendering property is set to auto. Default: OptimizeQuality
keep_named_groups: bool
Keep named groups. If set to true, all non-empty groups with id attribute will not be removed. Default: false
fontdb: FontDatabase
When empty, text elements will be skipped. Default: System
Trait Implementations§
Source§impl Clone for SvgParseOptions
impl Clone for SvgParseOptions
Source§fn clone(&self) -> SvgParseOptions
fn clone(&self) -> SvgParseOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SvgParseOptions
impl Debug for SvgParseOptions
Source§impl Default for SvgParseOptions
impl Default for SvgParseOptions
Source§fn default() -> SvgParseOptions
fn default() -> SvgParseOptions
Source§impl PartialEq for SvgParseOptions
impl PartialEq for SvgParseOptions
Source§impl PartialOrd for SvgParseOptions
impl PartialOrd for SvgParseOptions
impl StructuralPartialEq for SvgParseOptions
Auto Trait Implementations§
impl Freeze for SvgParseOptions
impl RefUnwindSafe for SvgParseOptions
impl Send for SvgParseOptions
impl Sync for SvgParseOptions
impl Unpin for SvgParseOptions
impl UnwindSafe for SvgParseOptions
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