Skip to content

Commit

Permalink
[read-fonts] capture full range of image data in cblc (#863)
Browse files Browse the repository at this point in the history
These can be sparse which requires reading offset and offset +1 to compute the full range.

ref https://skia-review.googlesource.com/c/skia/+/809056

* remove Option from data_size field

all formats can compute a data size

* add assert message to clarify test failures
  • Loading branch information
dfrg authored Mar 30, 2024
1 parent 1475083 commit bb468ed
Show file tree
Hide file tree
Showing 5 changed files with 1,561 additions and 15 deletions.
1 change: 1 addition & 0 deletions font-test-data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub static CANTARELL_VF_TRIMMED_GLYPHS: &str =
pub static CHARSTRING_PATH_OPS: &[u8] = include_bytes!("../test_data/ttf/charstring_path_ops.ttf");

pub static EMBEDDED_BITMAPS: &[u8] = include_bytes!("../test_data/ttf/embedded_bitmaps.ttf");
pub static CBDT: &[u8] = include_bytes!("../test_data/ttf/cbdt.ttf");

pub static HVAR_WITH_TRUNCATED_ADVANCE_INDEX_MAP: &[u8] =
include_bytes!("../test_data/ttf/hvar_with_truncated_adv_index_map.ttf");
Expand Down
Binary file added font-test-data/test_data/ttf/cbdt.ttf
Binary file not shown.
Loading

0 comments on commit bb468ed

Please sign in to comment.