diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-06-24 22:11:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-24 20:11:11 +0000 |
| commit | 45366c0112ac7a6197cee35f1e180c6a00923e05 (patch) | |
| tree | 8ce9679593c7ace2ce671cd67fec67745955f529 /crates/typst-svg | |
| parent | e6b531487042aab25fa72c886decf526672a4631 (diff) | |
Bump Rust in CI (#4445)
Diffstat (limited to 'crates/typst-svg')
| -rw-r--r-- | crates/typst-svg/src/text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-svg/src/text.rs b/crates/typst-svg/src/text.rs index dc5442f9..04b75123 100644 --- a/crates/typst-svg/src/text.rs +++ b/crates/typst-svg/src/text.rs @@ -238,7 +238,7 @@ fn convert_outline_glyph_to_path( /// Convert a bitmap glyph to an encoded image URL. #[comemo::memoize] fn convert_bitmap_glyph_to_image(font: &Font, id: GlyphId) -> Option<(Image, f64, f64)> { - let raster = font.ttf().glyph_raster_image(id, std::u16::MAX)?; + let raster = font.ttf().glyph_raster_image(id, u16::MAX)?; if raster.format != ttf_parser::RasterImageFormat::PNG { return None; } |
