mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Bump dependencies (#4846)
This commit is contained in:
parent
92f2c7b470
commit
b5ef9244eb
497
Cargo.lock
generated
497
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
18
Cargo.toml
18
Cargo.toml
@ -48,7 +48,7 @@ dirs = "5"
|
||||
ecow = { version = "0.2", features = ["serde"] }
|
||||
env_proxy = "0.4"
|
||||
flate2 = "1"
|
||||
fontdb = { version = "0.18", default-features = false }
|
||||
fontdb = { version = "0.21", default-features = false }
|
||||
fs_extra = "1.3"
|
||||
hayagriva = "0.5.3"
|
||||
heck = "0.5"
|
||||
@ -66,7 +66,7 @@ kurbo = "0.11"
|
||||
libfuzzer-sys = "0.4"
|
||||
lipsum = "0.9"
|
||||
log = "0.4"
|
||||
miniz_oxide = "0.7"
|
||||
miniz_oxide = "0.8"
|
||||
native-tls = "0.2"
|
||||
notify = "6"
|
||||
once_cell = "1"
|
||||
@ -78,7 +78,7 @@ parking_lot = "0.12.1"
|
||||
pathdiff = "0.2"
|
||||
pdf-writer = "0.10.0"
|
||||
phf = { version = "0.11", features = ["macros"] }
|
||||
pixglyph = "0.4"
|
||||
pixglyph = "0.5"
|
||||
png = "0.17"
|
||||
portable-atomic = "1.6"
|
||||
proc-macro2 = "1"
|
||||
@ -87,9 +87,9 @@ quote = "1"
|
||||
qcms = "0.3.0"
|
||||
rayon = "1.7.0"
|
||||
regex = "1"
|
||||
resvg = { version = "0.42", default-features = false, features = ["raster-images"] }
|
||||
resvg = { version = "0.43", default-features = false, features = ["raster-images"] }
|
||||
roxmltree = "0.20"
|
||||
rustybuzz = "0.14"
|
||||
rustybuzz = "0.18"
|
||||
same-file = "1"
|
||||
self-replace = "1.3.7"
|
||||
semver = "1"
|
||||
@ -101,7 +101,7 @@ siphasher = "1"
|
||||
smallvec = { version = "1.11.1", features = ["union", "const_generics", "const_new"] }
|
||||
stacker = "0.1.15"
|
||||
subsetter = { git = "https://github.com/typst/subsetter", rev = "4e0058b" }
|
||||
svg2pdf = { git = "https://github.com/typst/svg2pdf", rev = "39f8ad3" }
|
||||
svg2pdf = { git = "https://github.com/typst/svg2pdf", rev = "5963e1e" }
|
||||
syn = { version = "2", features = ["full", "extra-traits"] }
|
||||
syntect = { version = "5", default-features = false, features = ["parsing", "regex-fancy", "plist-load", "yaml-load"] }
|
||||
tar = "0.4"
|
||||
@ -110,7 +110,7 @@ thin-vec = "0.2.13"
|
||||
time = { version = "0.3.20", features = ["formatting", "macros", "parsing"] }
|
||||
tiny-skia = "0.11"
|
||||
toml = { version = "0.8", default-features = false, features = ["parse", "display"] }
|
||||
ttf-parser = "0.21.0"
|
||||
ttf-parser = "0.24.1"
|
||||
two-face = { version = "0.4.0", default-features = false, features = ["syntect-fancy"] }
|
||||
typed-arena = "2"
|
||||
unicode-bidi = "0.3.13"
|
||||
@ -120,9 +120,9 @@ unicode-script = "0.5"
|
||||
unicode-segmentation = "1"
|
||||
unscanny = "0.1"
|
||||
ureq = { version = "2", default-features = false, features = ["native-tls", "gzip", "json"] }
|
||||
usvg = { version = "0.42", default-features = false, features = ["text"] }
|
||||
usvg = { version = "0.43", default-features = false, features = ["text"] }
|
||||
walkdir = "2"
|
||||
wasmi = "0.34.0"
|
||||
wasmi = "0.35.0"
|
||||
xmlparser = "0.13.5"
|
||||
xmlwriter = "0.1.0"
|
||||
xmp-writer = "0.2"
|
||||
|
@ -542,26 +542,6 @@ impl<'a> ttf_parser::colr::Painter<'a> for GlyphPainter<'a> {
|
||||
self.svg.end_element(); // g
|
||||
}
|
||||
|
||||
fn push_translate(&mut self, tx: f32, ty: f32) {
|
||||
self.push_transform(ttf_parser::Transform::new(1.0, 0.0, 0.0, 1.0, tx, ty));
|
||||
}
|
||||
|
||||
fn push_scale(&mut self, sx: f32, sy: f32) {
|
||||
self.push_transform(ttf_parser::Transform::new(sx, 0.0, 0.0, sy, 0.0, 0.0));
|
||||
}
|
||||
|
||||
fn push_rotate(&mut self, angle: f32) {
|
||||
let cc = (angle * std::f32::consts::PI).cos();
|
||||
let ss = (angle * std::f32::consts::PI).sin();
|
||||
self.push_transform(ttf_parser::Transform::new(cc, ss, -ss, cc, 0.0, 0.0));
|
||||
}
|
||||
|
||||
fn push_skew(&mut self, skew_x: f32, skew_y: f32) {
|
||||
let x = (-skew_x * std::f32::consts::PI).tan();
|
||||
let y = (skew_y * std::f32::consts::PI).tan();
|
||||
self.push_transform(ttf_parser::Transform::new(1.0, y, x, 1.0, 0.0, 0.0));
|
||||
}
|
||||
|
||||
fn push_transform(&mut self, transform: ttf_parser::Transform) {
|
||||
self.transforms_stack.push(self.transform);
|
||||
self.transform = ttf_parser::Transform::combine(self.transform, transform);
|
||||
|
@ -7,7 +7,7 @@ use ecow::{eco_format, EcoString};
|
||||
use image::codecs::gif::GifDecoder;
|
||||
use image::codecs::jpeg::JpegDecoder;
|
||||
use image::codecs::png::PngDecoder;
|
||||
use image::io::Limits;
|
||||
use image::Limits;
|
||||
use image::{guess_format, DynamicImage, ImageDecoder, ImageResult};
|
||||
|
||||
use crate::diag::{bail, StrResult};
|
||||
|
Loading…
x
Reference in New Issue
Block a user