Skip to content

Commit

Permalink
tiny_skia_render: Fix unused qualifications. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored May 23, 2024
1 parent 94c5d78 commit f7f339b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/tiny_skia_render/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
//! Note: Emoji rendering is not currently implemented in this example. See the swash example
//! if you need emoji rendering.
use std::path::PathBuf;

use parley::layout::{Alignment, GlyphRun, Layout};
use parley::style::{FontStack, FontWeight, StyleProperty};
use parley::{FontContext, LayoutContext};
Expand Down Expand Up @@ -93,7 +91,7 @@ fn main() {
}

// Write image to PNG file in examples/_output dir
let output_path: PathBuf = {
let output_path = {
let path = std::path::PathBuf::from(file!());
let mut path = std::fs::canonicalize(path).unwrap();
path.pop();
Expand Down Expand Up @@ -128,7 +126,7 @@ fn render_glyph_run(glyph_run: &GlyphRun<PenikoColor>, pen: &mut TinySkiaPen<'_>
let normalized_coords = run
.normalized_coords()
.iter()
.map(|coord| skrifa::instance::NormalizedCoord::from_bits(*coord))
.map(|coord| NormalizedCoord::from_bits(*coord))
.collect::<Vec<_>>();

// Get glyph outlines using Skrifa. This can be cached in production code.
Expand Down

0 comments on commit f7f339b

Please sign in to comment.