Skip to content

Commit

Permalink
gg
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 28, 2024
1 parent 39e079c commit 6545fe4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/renderer/src/render/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ impl TypstRenderer {
// semantics layer
let mut tc = ((data_selection & (1 << 3)) != 0).then(Vec::new);

// let def_provider = GlyphProvider::new(FontGlyphProvider::default());
// let partial_providier =
// PartialFontGlyphProvider::new(def_provider,
// self.session_mgr.font_resolver.clone());

// worker.set_glyph_provider(GlyphProvider::new(partial_providier));

// crate::utils::console_log!("use partial font glyph provider");

let perf_events = if Feat::ENABLE_TRACING {
Some(elsa::FrozenMap::<&'static str, Box<f64>>::default())
} else {
Expand Down Expand Up @@ -246,8 +237,8 @@ mod tests {
session.set_pixel_per_pt(3.);

let sizes = &session.pages_info;
canvas.set_width((sizes.width() * 3.).ceil() as u32);
canvas.set_height((sizes.height() * 3.).ceil() as u32);
canvas.set_width((sizes.width() * 32.).ceil() as u32);
canvas.set_height((sizes.height() * 32.).ceil() as u32);

let context: web_sys::CanvasRenderingContext2d = canvas
.get_context("2d")
Expand Down

0 comments on commit 6545fe4

Please sign in to comment.