-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This supports only the kern0 subtable type, and we should probably add a nice builder to make this a bit easier.
- Loading branch information
Showing
10 changed files
with
1,084 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// from https://github.com/fonttools/fonttools/blob/729b3d2960efd3/Tests/ttLib/tables/_k_e_r_n_test.py#L9 | ||
#[rustfmt::skip] | ||
pub static KERN_VER_0_FMT_0_DATA: &[u8] = &[ | ||
0x00, 0x00, // "0000 " # 0: version=0 | ||
0x00, 0x01, // "0001 " # 2: nTables=1 | ||
0x00, 0x00, // "0000 " # 4: version=0 (bogus field, unused) | ||
0x00, 0x20, // "0020 " # 6: length=32 | ||
0x00, // "00 " # 8: format=0 | ||
0x01, // "01 " # 9: coverage=1 | ||
0x00, 0x03, // "0003 " # 10: nPairs=3 | ||
0x00, 0x0C, // "000C " # 12: searchRange=12 | ||
0x00, 0x01, // "0001 " # 14: entrySelector=1 | ||
0x00, 0x06, // "0006 " # 16: rangeShift=6 | ||
0x00, 0x04, 0x00, 0x0C, 0xFF, 0xD8, // "0004 000C FFD8 " # 18: l=4, r=12, v=-40 | ||
0x00, 0x04, 0x00, 0x1C, 0x00, 0x28, // "0004 001C 0028 " # 24: l=4, r=28, v=40 | ||
0x00, 0x05, 0x00, 0x28, 0xFF, 0xCE, // "0005 0028 FFCE " # 30: l=5, r=40, v=-50 | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.