Cargo Features
[dependencies]
krilla = { version = "0.3.0", default-features = false, features = ["svg", "simple-text", "fontdb", "raster-images"] }
- default = raster-images, simple-text, svg
-
These default features are set whenever
krilla
is added without
somewhere in the dependency tree.default-features = false - svg default = fontdb, raster-images
-
Allow for rendering SVG images and SVG-based glyphs.
Enables resvg, tiny-skia, and usvg
Affects
util::RectExt.to_clip_path
… - simple-text default
-
Allow for rendering simple text without having to shape it yourself.
Enables rustybuzz ^0.18.0
Affects
surface::TextDirection
… - fontdb svg
-
Add the convenience method for converting fontdb databases.
Enables fontdb ^0.22.0
- raster-images default svg
-
Allow for adding raster images to your document.
Enables gif, image-webp ^0.1.3, zune-jpeg, and zune-png
Affects
object::image
…