fuck up №2

This commit is contained in:
Jonny_Bro (Nikita) 2024-06-15 21:43:15 +05:00
parent 9197167f41
commit 7a4fe1a80f
Signed by: jonny_bro
GPG key ID: 3F1ECC04147E9BD8

View file

@ -1,9 +1,9 @@
const moment = require("moment"),
Canvas = require("@napi-rs/canvas"),
{ GlobalFonts } = require("@napi-rs/canvas"),
{ resolve } = require("path");
Canvas.registerFont(resolve("./assets/fonts/RubikMonoOne-Regular.ttf"), { family: "RubikMonoOne" });
Canvas.registerFont(resolve("./assets/fonts/KeepCalm-Medium.ttf"), { family: "KeepCalm" });
GlobalFonts.registerFromPath(resolve("./assets/fonts/RubikMonoOne-Regular.ttf"), "RubikMonoOne");
GlobalFonts.registerFromPath(resolve("./assets/fonts/KeepCalm-Medium.ttf"), "KeepCalm");
module.exports = {
/**