Cargo Features

[dependencies]
usvg = { version = "0.41.0", default-features = false, features = ["text", "system-fonts", "memmap-fonts"] }
default = memmap-fonts, system-fonts, text

These default features are set whenever usvg is added without default-features = false somewhere in the dependency tree.

text default = fontdb, rustybuzz, unicode-bidi, unicode-script, unicode-vo

Enables text-to-path conversion support.
Adds around 400KiB to your binary.

Affects image::ImageHrefDataResolverFn, image::ImageHrefStringResolverFn

Required by the binary

system-fonts default

Enables system fonts loading.

Enables fontconfig and fs of fontdb ^0.16.1

text

Required by the binary

memmap-fonts default

Enables font files memmaping for faster loading.

Enables memmap of fontdb ^0.16.1

Required by the binary

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

fontdb memmap-fonts system-fonts text

Enables fontdb ^0.16.1

rustybuzz text

Enables rustybuzz ^0.13

unicode-bidi text
unicode-script text
unicode-vo text