Skip to content

Commit f1316b3

Browse files
committed
Compare everything a little larger
1 parent 5ecaef1 commit f1316b3

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

test/unit/visual/cases/typography.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,13 @@ visualSuite("Typography", function () {
354354
});
355355

356356
visualSuite("textStyle", function () {
357-
visualTest("all text styles", function (p5, screenshot) {
357+
visualTest("all text styles", async function (p5, screenshot) {
358358
p5.createCanvas(150, 150);
359+
const font = await p5.loadFont(
360+
'https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,[email protected],200..800&display=swap'
361+
);
359362
p5.textSize(20);
363+
p5.textFont(font);
360364
p5.textAlign(p5.LEFT, p5.TOP);
361365

362366
p5.text("Regular Text", 0, 0);
7 Bytes
Loading
22 Bytes
Loading
-35 Bytes
Loading

test/unit/visual/visualTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const SHIFT_THRESHOLD = 1;
1515

1616
// The max side length to shrink test images down to before
1717
// comparing, for performance.
18-
const MAX_SIDE = 50;
18+
const MAX_SIDE = 80;
1919

2020
// The background color to composite test cases onto before
2121
// diffing. This is used because canvas DIFFERENCE blend mode

0 commit comments

Comments
 (0)