In the tutorial "Styling Text with CSS and Local Fonts" the fonts I use are in a file format .WOFF. This tutorial describes the conversion process using an online converter, developed by Andrew Sun, to generate fonts suitable for use in the tutorial
Using specific or custom fonts are among the most potentially appealing aspects of CSS3 for designers creating skins within Pano2VR. With the @font-face rule, you can render any font you have online within your text, regardless of whether the user has it installed or not. There are a number of fonts supported by the different browsers but for my projects I tend to stick with WOFF.
The @font-face rule is supported in Internet Explorer, Firefox, Opera, Chrome, and Safari.
The numbers in the table specifies the first browser version that fully supports the font format.
*Edge and IE: The font format only works when set to be "installable".
*Firefox: Disabled by default, but can be enabled (need to set a flag to "true" to use WOFF2).
Online Font Converters
There are a number of online converters you can use. In this exmple I'm using WOFFer by Andrew Sun at https://andrewsun.com/tools/woffer-woff-font-converter/
The WOFFer is a tool to convert TTF or OTF to WOFF and back to TTF or OTF. WOFF, short for Web Open Font Format, is a special font format that is compressed and optimized for use on the web. This format compresses the font data using zlib, which can greatly reduce the size of the font for faster loading.
1. Open the web URL and you will see the conversion tool (shown above) and the 'WOFFer Drag and drop files here' window
Note: I’ve just reviewed this tutorial and had some issues converting via WOFFer on a Mac in both Chrome Version 75.0.3770.100 and Firefox 67.0.4 as neither would recognise the drag and drop or choose files option. However Safari would recognise the drag and drop and did convert the OTF files. Any feedback would be appreciated.
An alternative converter, FontSquirrel worked, and there is a link at the bottom of the tutorial.
2. In this example I'm going to use the font Calibri and the three styles, Bold, Light and SemiBold
3. Drag the files onto the Drag and Drop window, WOOFer will start processing the files and update the page when the conversion is complete
4. WOOFer will start processing the files and update the page when the conversion is complete
Files being processed and ready for download
5. Once the files have been processed you can download them individually or as a zip file.
6. The files can now be used in conjunction with your Pano2VR project, for more information on using them within a project visit the tutorial "Styling Text with CSS and Local Fonts"
Note: If you are having issues with Fonts not looking the same between Windows and Mac you may like to take a look at a couple of other converters that correct vertical alignment, which seems to be a known issue in Google browser.