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