Skip to content

Commit

Permalink
[fontbe] move marks/kern modules into ::features
Browse files Browse the repository at this point in the history
These are likely going to be sharing a bunch of code in the future, and
I think it makes sense to group all of that under the features module.
  • Loading branch information
cmyr committed Mar 12, 2024
1 parent e7ef935 commit 1ed2d93
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions fontbe/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ use crate::{
orchestration::{AnyWorkId, BeWork, Context, FeaAst, FeaRsKerns, FeaRsMarks, WorkId},
};

mod kern;
mod marks;
pub use kern::{create_gather_ir_kerning_work, create_kern_segment_work, create_kerns_work};
pub use marks::create_mark_work;

#[derive(Debug)]
pub struct FeatureParsingWork {}

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions fontbe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ pub mod glyphs;
pub mod gvar;
pub mod head;
pub mod hvar;
pub mod kern;
pub mod marks;
pub mod metrics_and_limits;
pub mod mvar;
pub mod name;
Expand Down
7 changes: 4 additions & 3 deletions fontc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ use std::{
use fontbe::{
avar::create_avar_work,
cmap::create_cmap_work,
features::{FeatureCompilationWork, FeatureParsingWork},
features::{
create_gather_ir_kerning_work, create_kerns_work, create_mark_work, FeatureCompilationWork,
FeatureParsingWork,
},
font::create_font_work,
fvar::create_fvar_work,
glyphs::{create_glyf_loca_work, create_glyf_work},
gvar::create_gvar_work,
head::create_head_work,
hvar::create_hvar_work,
kern::{create_gather_ir_kerning_work, create_kerns_work},
marks::create_mark_work,
metrics_and_limits::create_metric_and_limit_work,
mvar::create_mvar_work,
name::create_name_work,
Expand Down
2 changes: 1 addition & 1 deletion fontc/src/workload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::{

use crossbeam_channel::{Receiver, TryRecvError};
use fontbe::{
kern::create_kern_segment_work,
features::create_kern_segment_work,
orchestration::{AnyWorkId, Context as BeContext, WorkId as BeWorkIdentifier},
};
use fontdrasil::{
Expand Down

0 comments on commit 1ed2d93

Please sign in to comment.