Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rsheeter committed Jan 23, 2023
1 parent 5deab6c commit 0a0789d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]

members = [
"shape-brokkr",
"fontdrasil",
"fontbe",
"fontir",
Expand Down
25 changes: 25 additions & 0 deletions shape-brokkr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "shape-brokkr"
version = "0.0.1"
edition = "2021"
license = "MIT/Apache-2.0"
description = "A simple representation of a path, meant for use in fonts. Tools to find reusable parts in sets of shapes."
repository = "https://github.com/googlefonts/fontmake-rs"
readme = "README.md"
categories = ["text-processing", "parsing", "graphics"]

[features]

[dependencies]

kurbo = "0.9.0"
ordered-float = "3.4.0"
serde = {version = "1.0", features = ["derive"] }

log = "0.4"
env_logger = "0.9.0"

[dev-dependencies]
diff = "0.1.12"
ansi_term = "0.12.1"
tempfile = "3.3.0"
5 changes: 5 additions & 0 deletions shape-brokkr/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//! Library to aid in identifying reusable shapes.
//!
//! Derived from <https://github.com/googlefonts/nanoemoji>'s implementation
//! of shape reuse.
pub mod reuse;
7 changes: 7 additions & 0 deletions shape-brokkr/src/reuse.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//! Functions to help find opportunities to reuse shapes.
use kurbo::{BezPath, Vec2};

fn vectors(path: &BezPath) -> Vec<Vec2> {
todo!()
}

0 comments on commit 0a0789d

Please sign in to comment.