-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6861 from davepagurek/fix/default-fonts
Fix usage of default fonts
- Loading branch information
Showing
8 changed files
with
35 additions
and
3 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
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
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,20 @@ | ||
visualSuite('Typography', function() { | ||
visualSuite('textFont() with default fonts', function() { | ||
visualTest('With the default font', function (p5, screenshot) { | ||
p5.createCanvas(50, 50); | ||
p5.textSize(20); | ||
p5.textAlign(p5.LEFT, p5.TOP); | ||
p5.text('test', 0, 0); | ||
screenshot(); | ||
}); | ||
|
||
visualTest('With the default monospace font', function (p5, screenshot) { | ||
p5.createCanvas(50, 50); | ||
p5.textSize(20); | ||
p5.textFont('monospace'); | ||
p5.textAlign(p5.LEFT, p5.TOP); | ||
p5.text('test', 0, 0); | ||
screenshot(); | ||
}); | ||
}); | ||
}, { focus: true }); |
Binary file added
BIN
+848 Bytes
...eenshots/Typography/textFont() with default fonts/With the default font/000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
.../screenshots/Typography/textFont() with default fonts/With the default font/metadata.json
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,3 @@ | ||
{ | ||
"numScreenshots": 1 | ||
} |
Binary file added
BIN
+694 Bytes
...ypography/textFont() with default fonts/With the default monospace font/000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...ts/Typography/textFont() with default fonts/With the default monospace font/metadata.json
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,3 @@ | ||
{ | ||
"numScreenshots": 1 | ||
} |
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