hummus-recipe
Version:
A powerful PDF tool for NodeJS based on HummusJS
11 lines (9 loc) • 316 B
JavaScript
import r from 'restructure';
// Linear Threshold table
// Records the ppem for each glyph at which the scaling becomes linear again,
// despite instructions effecting the advance width
export default new r.Struct({
version: r.uint16,
numGlyphs: r.uint16,
yPels: new r.Array(r.uint8, 'numGlyphs')
});