Skip to content

Commit

Permalink
Some more bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed May 18, 2024
1 parent 5397958 commit ba01579
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FONT="fonts/NotoSansCJKsc-Regular.otf"
GIDS="0-5"
GIDS="1398,9481,9514,9987,14225,20036,20333,22784,23422,27105,29654,38482,40121,59058"

fonttools subset $FONT --drop-tables=GSUB,GPOS,GDEF,FFTM,vhea,vmtx,DSIG,VORG,cmap,hdmx \
--gids=$GIDS --glyph-names --desubroutinize --output-file=out_ft.otf \
Expand Down
2 changes: 0 additions & 2 deletions src/cff/dict/top_dict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ pub(crate) fn write_top_dict_index(
let finished = w.finish();

let index = create_index(vec![finished])?;
println!("{:?}", index);
println!("{:?}", index.len());

Ok(index)
}
4 changes: 0 additions & 4 deletions src/cff/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ pub fn subset<'a>(ctx: &mut Context<'a>) -> Result<()> {

subsetted_font = w.finish();
}
let table = ttf_parser::cff::Table::parse(&subsetted_font).unwrap();
let mut builder = Sink(vec![]);
table.outline(GlyphId(3), &mut builder).unwrap();

ctx.push(Tag::CFF, subsetted_font);

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn prepare_context<'a>(
mapper,
kind,
tables: vec![],
long_loca: true,
long_loca: false,
})
}

Expand Down

0 comments on commit ba01579

Please sign in to comment.