hopefully this works for the font
This commit is contained in:
1 parent
5f446aac27
commit
a27f800989
1 file changed
+1
-1
+1
-1
@@ -705,7 +705,7 @@ 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');
|
||||||
|
|
||||||
const fontPath = path.join(__dirname, 'fonts', 'SF-Pro-Display-Semibold.otf');
|
const fontPath = path.join(__dirname, '..', 'assets', 'SF-Pro-Display-Semibold.otf');
|
||||||
console.log('looking for font at:', fontPath);
|
console.log('looking for font at:', fontPath);
|
||||||
console.log('file exists:', require('fs').existsSync(fontPath));
|
console.log('file exists:', require('fs').existsSync(fontPath));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user