mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Bump dependencies
This commit is contained in:
parent
d5d2b80699
commit
1c43d8af12
15
.github/workflows/rust.yml
vendored
15
.github/workflows/rust.yml
vendored
@ -19,15 +19,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
path: typst
|
|
||||||
|
|
||||||
- name: Checkout pdf-writer
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: typst/pdf-writer
|
|
||||||
token: ${{ secrets.TYPSTC_ACTION_TOKEN }}
|
|
||||||
path: pdf-writer
|
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
@ -43,16 +34,16 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --manifest-path typst/Cargo.toml --all-features
|
args: --all-features
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --manifest-path typst/Cargo.toml --all-features
|
args: --all-features
|
||||||
|
|
||||||
- name: Test without incremental
|
- name: Test without incremental
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --manifest-path typst/Cargo.toml --no-default-features --features fs
|
args: --no-default-features --features fs
|
||||||
|
@ -26,8 +26,8 @@ decorum = { version = "0.3.1", default-features = false, features = ["serialize-
|
|||||||
fxhash = "0.2.1"
|
fxhash = "0.2.1"
|
||||||
image = { version = "0.23", default-features = false, features = ["png", "jpeg"] }
|
image = { version = "0.23", default-features = false, features = ["png", "jpeg"] }
|
||||||
miniz_oxide = "0.3"
|
miniz_oxide = "0.3"
|
||||||
pdf-writer = { path = "../pdf-writer" }
|
pdf-writer = "0.3"
|
||||||
rustybuzz = { git = "https://github.com/laurmaedje/rustybuzz" }
|
rustybuzz = "0.4"
|
||||||
serde = { version = "1", features = ["derive", "rc"] }
|
serde = { version = "1", features = ["derive", "rc"] }
|
||||||
ttf-parser = "0.12"
|
ttf-parser = "0.12"
|
||||||
unicode-bidi = "0.3.5"
|
unicode-bidi = "0.3.5"
|
||||||
|
@ -275,12 +275,12 @@ fn shape_segment<'a>(
|
|||||||
let info = &infos[i];
|
let info = &infos[i];
|
||||||
let cluster = info.cluster as usize;
|
let cluster = info.cluster as usize;
|
||||||
|
|
||||||
if info.codepoint != 0 || !fallback {
|
if info.glyph_id != 0 || !fallback {
|
||||||
// Add the glyph to the shaped output.
|
// Add the glyph to the shaped output.
|
||||||
// TODO: Don't ignore y_advance and y_offset.
|
// TODO: Don't ignore y_advance and y_offset.
|
||||||
glyphs.push(ShapedGlyph {
|
glyphs.push(ShapedGlyph {
|
||||||
face_id,
|
face_id,
|
||||||
glyph_id: info.codepoint as u16,
|
glyph_id: info.glyph_id as u16,
|
||||||
x_advance: face.to_em(pos[i].x_advance).to_length(state.size),
|
x_advance: face.to_em(pos[i].x_advance).to_length(state.size),
|
||||||
x_offset: face.to_em(pos[i].x_offset).to_length(state.size),
|
x_offset: face.to_em(pos[i].x_offset).to_length(state.size),
|
||||||
text_index: base + cluster,
|
text_index: base + cluster,
|
||||||
@ -291,7 +291,7 @@ fn shape_segment<'a>(
|
|||||||
let range = {
|
let range = {
|
||||||
// First, search for the end of the tofu sequence.
|
// First, search for the end of the tofu sequence.
|
||||||
let k = i;
|
let k = i;
|
||||||
while infos.get(i + 1).map_or(false, |info| info.codepoint == 0) {
|
while infos.get(i + 1).map_or(false, |info| info.glyph_id == 0) {
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user