Skip to content

Commit

Permalink
[read-fonts] parse cvar table (#833)
Browse files Browse the repository at this point in the history
* [read-fonts] parse cvar table

* impl cvar, move shared gvar code

* add raw tuple test and trim test fonts

* distinct types for glyph and CVT deltas

* review feedback

- fix comment
- use proper covariant type for PhantomData
  • Loading branch information
dfrg authored Mar 14, 2024
1 parent 624d8ce commit a719caa
Show file tree
Hide file tree
Showing 12 changed files with 1,229 additions and 238 deletions.
2 changes: 2 additions & 0 deletions font-test-data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pub static COLRV0V1: &[u8] = include_bytes!("../test_data/ttf/test_glyphs-glyf_c
pub static COLRV0V1_VARIABLE: &[u8] =
include_bytes!("../test_data/ttf/test_glyphs-glyf_colr_1_variable.ttf");

pub static CVAR: &[u8] = include_bytes!("../test_data/ttf/cvar.ttf");

pub mod closure {
pub static SIMPLE: &[u8] = include_bytes!("../test_data/ttf/simple_closure.ttf");
pub static SIMPLE_GLYPHS: &str = include_str!("../test_data/fea/simple_closure_glyphs.txt");
Expand Down
Binary file added font-test-data/test_data/ttf/cvar.ttf
Binary file not shown.
Loading

0 comments on commit a719caa

Please sign in to comment.