mirror of https://github.com/wayvr-org/wayvr.git
log svg loads
This commit is contained in:
parent
3889c9d2ea
commit
a33d4ec9d0
|
|
@ -171,6 +171,7 @@ impl CustomGlyphData {
|
|||
Ok(data) => return Ok(data),
|
||||
Err(hashed_asset) => {
|
||||
let data = Self::new(CustomGlyphContent::from_bin_svg(data)?);
|
||||
log::trace!("Caching {path} with content_id {}", data.id);
|
||||
globals_borrow.custom_glyph_cache.insert(hashed_asset, &data);
|
||||
Ok(data)
|
||||
}
|
||||
|
|
@ -324,6 +325,8 @@ fn rasterize_svg(tree: &Tree, input: &RasterizeCustomGlyphRequest) -> Option<Ras
|
|||
let scale_x = f32::from(input.width) / svg_size.width();
|
||||
let scale_y = f32::from(input.height) / svg_size.height();
|
||||
|
||||
log::trace!("Rasterizing content_id {}", input.data.id);
|
||||
|
||||
let mut pixmap = resvg::tiny_skia::Pixmap::new(u32::from(input.width), u32::from(input.height))?;
|
||||
let mut transform = resvg::usvg::Transform::from_scale(scale_x, scale_y);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue