Skip to content

Commit

Permalink
build: update xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 29, 2024
1 parent 9762c78 commit 59b75cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 98 deletions.
43 changes: 0 additions & 43 deletions crates/conversion/vec2canvas/src/pixglyph_canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,49 +269,6 @@ impl Debug for Bitmap {
}
}

// Builds the glyph outline.
// #[derive(Default)]
// struct Builder {
// segments: Vec<Segment>,
// start: Option<Point>,
// last: Point,
// }

// impl OutlineBuilder for Builder {
// fn move_to(&mut self, x: f32, y: f32) {
// self.start = Some(point(x, y));
// self.last = point(x, y);
// }

// fn line_to(&mut self, x: f32, y: f32) {
// self.segments.push(Segment::Line(self.last, point(x, y)));
// self.last = point(x, y);
// }

// fn quad_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32) {
// self.segments
// .push(Segment::Quad(self.last, point(x1, y1), point(x2, y2)));
// self.last = point(x2, y2);
// }

// fn curve_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, x3: f32, y3:
// f32) { self.segments.push(Segment::Cubic(
// self.last,
// point(x1, y1),
// point(x2, y2),
// point(x3, y3),
// ));
// self.last = point(x3, y3);
// }

// fn close(&mut self) {
// if let Some(start) = self.start.take() {
// self.segments.push(Segment::Line(self.last, start));
// self.last = start;
// }
// }
// }

// Accumulation, line and quad drawing taken from here:
// https://github.com/raphlinus/font-rs
//
Expand Down
Loading

0 comments on commit 59b75cf

Please sign in to comment.