diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-13 23:16:40 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-14 13:53:02 +0200 |
| commit | c81e2a5f56eb262663f292578c683fba7f18251f (patch) | |
| tree | 6c045a8dcbec5e75e01a15f970ef8cee6ff042d0 /src/export/render.rs | |
| parent | 891af17260a6750a74a102388a05e59cf1ffc3c1 (diff) | |
Many fixes
Diffstat (limited to 'src/export/render.rs')
| -rw-r--r-- | src/export/render.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/export/render.rs b/src/export/render.rs index 1387015b..b56a053b 100644 --- a/src/export/render.rs +++ b/src/export/render.rs @@ -20,8 +20,7 @@ use crate::Context; /// returns the resulting `tiny-skia` pixel buffer. /// /// In addition to the frame, you need to pass in the context used during -/// compilation so that fonts and images can be rendered and rendering artifacts -/// can be cached. +/// compilation so that fonts and images can be rendered. pub fn render(ctx: &Context, frame: &Frame, pixel_per_pt: f32) -> sk::Pixmap { let size = frame.size(); let pxw = (pixel_per_pt * size.x.to_f32()).round().max(1.0) as u32; @@ -298,7 +297,7 @@ fn render_outline_glyph( Some(()) } -/// Renders a geometrical shape into the canvas. +/// Render a geometrical shape into the canvas. fn render_shape( canvas: &mut sk::Pixmap, ts: sk::Transform, @@ -341,7 +340,7 @@ fn render_shape( Some(()) } -/// Renders a raster or SVG image into the canvas. +/// Render a raster or SVG image into the canvas. fn render_image( canvas: &mut sk::Pixmap, ts: sk::Transform, |
