This commit is contained in:
@@ -20,7 +20,8 @@ test('pinned font binaries and upstream licenses match their integrity manifest'
|
||||
|
||||
test('Lyth Mono paths retain exact advance, row bounds and stroke dimensions', () => {
|
||||
close(cellWidth, 8.456);
|
||||
close(stemWidth, 1.064);
|
||||
close(stemWidth, 1.064 * 1.25);
|
||||
close(branchThickness, (68 / 1170) * 24 * 1.25);
|
||||
close(branchY, rowHeight / 2);
|
||||
const vertical = box(glyphPath('│'));
|
||||
close(vertical.y1, 0);
|
||||
@@ -31,6 +32,17 @@ test('Lyth Mono paths retain exact advance, row bounds and stroke dimensions', (
|
||||
close(horizontal.x1, 0);
|
||||
close(horizontal.x2, cellWidth);
|
||||
close(horizontal.y2 - horizontal.y1, branchThickness);
|
||||
close((horizontal.y1 + horizontal.y2) / 2, branchY);
|
||||
const tee = box(glyphPath('├'));
|
||||
close(tee.x1, cellWidth / 2 - stemWidth / 2);
|
||||
close(tee.x2, cellWidth);
|
||||
close(tee.y1, 0);
|
||||
close(tee.y2, rowHeight);
|
||||
const elbow = box(glyphPath('└'));
|
||||
close(elbow.x1, tee.x1);
|
||||
close(elbow.x2, cellWidth);
|
||||
close(elbow.y1, 0);
|
||||
close(elbow.y2, branchY + branchThickness / 2);
|
||||
const trunk = box(trunkPath);
|
||||
close(trunk.x1 + trunk.x2, 0);
|
||||
close(trunk.x2 - trunk.x1, stemWidth);
|
||||
|
||||
Reference in New Issue
Block a user