diff options
| author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2024-09-26 13:32:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 17:32:55 +0000 |
| commit | ca1f749c087bc19f6fbcebcd3ee34307959a95d5 (patch) | |
| tree | afa4bc0fca4b27d15b99df6da625090b0ef864f2 /crates/typst-pdf | |
| parent | 3c90878460cecaaa7ac879ba0973f94705b7c062 (diff) | |
Spelling (#5020)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Diffstat (limited to 'crates/typst-pdf')
| -rw-r--r-- | crates/typst-pdf/src/font.rs | 2 | ||||
| -rw-r--r-- | crates/typst-pdf/src/image.rs | 2 | ||||
| -rw-r--r-- | crates/typst-pdf/src/lib.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-pdf/src/font.rs b/crates/typst-pdf/src/font.rs index c88c2bfd..eb2c2b3b 100644 --- a/crates/typst-pdf/src/font.rs +++ b/crates/typst-pdf/src/font.rs @@ -198,7 +198,7 @@ pub fn write_font_descriptor<'a>( #[typst_macros::time(name = "subset font")] fn subset_font(font: &Font, glyph_remapper: &GlyphRemapper) -> Arc<Vec<u8>> { let data = font.data(); - // TODO: Fail export instead of unwrapping once export diagnoistics exist. + // TODO: Fail export instead of unwrapping once export diagnostics exist. let subsetted = subsetter::subset(data, font.index(), glyph_remapper).unwrap(); let mut data = subsetted.as_ref(); diff --git a/crates/typst-pdf/src/image.rs b/crates/typst-pdf/src/image.rs index 83797501..7bcd83e7 100644 --- a/crates/typst-pdf/src/image.rs +++ b/crates/typst-pdf/src/image.rs @@ -183,7 +183,7 @@ fn encode_alpha(raster: &RasterImage) -> (Vec<u8>, Filter) { /// Encode an SVG into a chunk of PDF objects. #[typst_macros::time(name = "encode svg")] fn encode_svg(svg: &SvgImage) -> (Chunk, Ref) { - // TODO: Don't unwrap once we have export diagostics. + // TODO: Don't unwrap once we have export diagnostics. svg2pdf::to_chunk(svg.tree(), svg2pdf::ConversionOptions::default()).unwrap() } diff --git a/crates/typst-pdf/src/lib.rs b/crates/typst-pdf/src/lib.rs index 9af830bd..ae05a43b 100644 --- a/crates/typst-pdf/src/lib.rs +++ b/crates/typst-pdf/src/lib.rs @@ -417,7 +417,7 @@ struct PdfChunk { /// chunk, and should be remapped. /// /// This is a constant (large enough to avoid collisions) and not -/// dependant on self.alloc to allow for better memoization of steps, if +/// dependent on self.alloc to allow for better memoization of steps, if /// needed in the future. const TEMPORARY_REFS_START: i32 = 1_000_000_000; |
