forked from Supositware/Haha-Yes
use ubuntu font
This commit is contained in:
parent
44686e02ae
commit
7b344ee248
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ module.exports = class idubbbzCommand extends Command {
|
|||
|
||||
do {
|
||||
// Assign the font to the context and decrement it so it can be measured again
|
||||
ctx.font = `${fontSize -= 10}px sans-serif`;
|
||||
ctx.font = `${fontSize -= 10}px ubuntu`;
|
||||
} while (ctx.measureText(text).width > 700 - 300);
|
||||
|
||||
// Return the result to use in the actual canvas
|
||||
|
|
|
@ -46,7 +46,7 @@ module.exports = class idubbbzpaintCommand extends Command {
|
|||
|
||||
do {
|
||||
// Assign the font to the context and decrement it so it can be measured again
|
||||
ctx.font = `${fontSize -= 10}px sans-serif`;
|
||||
ctx.font = `${fontSize -= 10}px ubuntu`;
|
||||
} while (ctx.measureText(text).width > 800 - 300);
|
||||
|
||||
// Return the result to use in the actual canvas
|
||||
|
|
Loading…
Reference in a new issue