edsfg
This commit is contained in:
1 parent
82f2486bb1
commit
6143664d14
1 file changed
+4
-1
+4
-1
@@ -705,11 +705,14 @@ GlobalFonts.registerFromPath(
|
|||||||
GlobalFonts.registerFromPath('C:/Windows/Fonts/tahoma.ttf', 'Tahoma');
|
GlobalFonts.registerFromPath('C:/Windows/Fonts/tahoma.ttf', 'Tahoma');
|
||||||
GlobalFonts.registerFromPath('C:/Windows/Fonts/tahomabd.ttf', 'TahomaB');
|
GlobalFonts.registerFromPath('C:/Windows/Fonts/tahomabd.ttf', 'TahomaB');
|
||||||
|
|
||||||
GlobalFonts.registerFromPath(
|
const loaded = GlobalFonts.registerFromPath(
|
||||||
path.join(__dirname, 'assets', 'SF-Pro-Display-Semibold.otf'),
|
path.join(__dirname, 'assets', 'SF-Pro-Display-Semibold.otf'),
|
||||||
'SF Pro Display'
|
'SF Pro Display'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log('font loaded:', loaded);
|
||||||
|
console.log('registered fonts:', GlobalFonts.families);
|
||||||
|
|
||||||
// Custom background URL — set with !setbg <url>, cleared with !clearbg
|
// Custom background URL — set with !setbg <url>, cleared with !clearbg
|
||||||
let customBgUrl = null;
|
let customBgUrl = null;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user