forked from foliojs/fontkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvhea.js
More file actions
20 lines (19 loc) · 1.13 KB
/
vhea.js
File metadata and controls
20 lines (19 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as r from 'restructure';
import { version16Dot16 } from '../utils';
// Vertical Header Table
export default new r.Struct({
version: version16Dot16,
ascent: r.int16, // The vertical typographic ascender for this font
descent: r.int16, // The vertical typographic descender for this font
lineGap: r.int16, // The vertical typographic line gap for this font
advanceHeightMax: r.int16, // The maximum advance height measurement found in the font
minTopSideBearing: r.int16, // The minimum top side bearing measurement found in the font
minBottomSideBearing: r.int16, // The minimum bottom side bearing measurement found in the font
yMaxExtent: r.int16,
caretSlopeRise: r.int16, // Caret slope (rise/run)
caretSlopeRun: r.int16,
caretOffset: r.int16, // Set value equal to 0 for nonslanted fonts
reserved: new r.Reserved(r.int16, 4),
metricDataFormat: r.int16, // Set to 0
numberOfMetrics: r.uint16 // Number of advance heights in the Vertical Metrics table
});