Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update changelog #74

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Added support for text embedding.

### Added
- Text is now embedded as proper text instead of being flattened to paths.
- Made the CLI more flexible in terms of which features you want to include.
- Added `raster-scale` and `text-to-paths` as arguments for the CLI.
- Removed the option to configure the view box from the API. This might be readded in
a later update.
- The `convert_str` method has been removed. You should now always convert your SVG string into a `usvg`
tree yourself and then call either `to_pdf` or `to_chunk`.
- The `convert_tree` method has been renamed into `to_pdf`, and now requires you to provide the fontdb
used for the `usvg` tree, unless you have disabled the `text` feature.
- `convert_tree_into` has been renamed into `to_chunk` and now returns an independent chunk as well
as the object ID of the actual SVG in the chunk.

### Changed
- Bumped resvg to v0.40.
- `convert_str` now requires a `fontdb` as an argument as well.
- Bumped resvg to v0.42, fontdb to v0.18, and pdf-writer to v0.10.
- The `convert_tree` method has been renamed into `to_pdf`.
- The `convert_tree_into` function has been renamed into `to_chunk` and now returns an independent chunk and the object ID of the actual SVG in the chunk.

### Fixed
- Fixed a bug with softmasks on images.

### Removed
- The `convert_str` method has been removed. You should now always convert your SVG string into a `usvg` tree yourself and then call either `to_pdf` or `to_chunk`.
- Removed the option to configure the view box from the API. This might be readded in a later update.

## [0.10.0]

Expand All @@ -33,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed dpi ratio calculation. Thanks to [@Ultraxime](https://github.com/Ultraxime).

### Changed
- Bumped resvg to v0.38 and fontdb to 0.16.
- Bumped resvg to v0.38 and fontdb to v0.16.
- (Internal) reworked the test suite.
- (Internal) synced test suite with resvg test suite.

Expand Down
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ unicode-properties = { workspace = true, optional = true }
miniz_oxide = { workspace = true }
once_cell = { workspace = true }
pdf-writer = { workspace = true }
fontdb = { workspace = true, optional = true}
fontdb = { workspace = true, optional = true }
usvg = { workspace = true }
log = { workspace = true }
image = { workspace = true, optional = true }
tiny-skia = {workspace = true, optional = true }
resvg = {workspace = true, optional = true }
tiny-skia = { workspace = true, optional = true }
resvg = { workspace = true, optional = true }
subsetter = { workspace = true, optional = true }
ttf-parser = { workspace = true, optional = true }
siphasher = { workspace = true, optional = true }