Adding New Titles Fonts

In this post, we will review how to add two new Google fonts to be used in the Splashscreen Titles. The fonts Skanji and Prata will replace the default Montserrat font.

Note: To see examples of the font updates it would be advantageous, a Splashscreen as well as a Gallery hotspot active in your project.

Tutorial versions that have Splashscreens and Gallery hotspot are;

**CLEAN_START >
2_SPLASHSCREEN.(p2vr) to 7_SPLASHSCREEN_VB2FULL.(p2vr)

As shown below both fonts are available for download from Google Fonts.

Skranji comes in two styles, Regular 400 and Bold 700, while Prata is a single style, Regular 400.

Note: this post is based on the assumption that the reader is familiar with Google Fonts. If not, I recommend viewing Martin Hopkins Pano2VR’s webinar Pano2VR 7 beta - Logic Blocks and Embedded Fonts.

If you follow his webinar you can stop at 3:51 (downloading the font) and continue in this post.

Locate the fonts using google-webfonts-helper

Download the Prata and Skranji zip files into the RPGTV2024_Project > *ASSETS > Fonts folder.

 
 

Extract the contents of both zip files and place them in their named folders.

 
 

In the **UNIVERSAL_SKIN folder, double-click on the UNIVERSAL_SKIN.ggsk to open it.

In the Tree, open the IND_CODE ELEMENTS folder.

Select the code block local_fonts, and in the Properties > Code Elements panel, click the Open Editor button to open the Enter Value window.

In the Enter Value window, scroll to the end of the code and paste in the CSS code copied from the Google Webfonts Helper site (as shown in the Pano2VR Webinar video)

Note: Make sure the url points to “fonts”

Note: when you are finished do not close the window; you will lose the entries. Make sure you click on OK.

You can delete the line font-display: swap from each entry if you want to.

In the Code Element panel, scroll down to Local Files:

At the end of the Local Files: File list, click the “+” button next to the empty file area.

 
 

Navigate to the *ASSETS > Fonts > Prata folder and select the prata-v20-latin-regular.woff2 file to add it to the list.

Repeat the last steps and add the Skranji fonts.

Add fonts/ to each of the new entries.

 
 

The final step is to update the font_classes code block.

In the IND_CODE ELEMENTS folder, select the code block font_classes, and in the Properties > Code Element > Code: panel, click the Open Editor button to open the Enter Value window.

The font_classes code block contains 3 sections;

  1. Red: URL link colors

  2. Green: Splashscreen Titles Classes

  3. Yellow: General Text Classes

In the first font example, we will change all the Splash and Mobile Rotate Titles to Prata

Replace all of the font family names in the Green area with Prata and change the font weight to 400.

Note: When you are finished do not close the window; you will lose the entries. Make sure you click on OK.

Save the project and output the project. The splash screen should look like the examples below with Prata displayed as the main title font.

In the second font example, we will change all the Splash and Mobile Rotate Titles to Skranji.

Replace all of the font family names in the Green area with Skrangi and change the .splashtitle font weight to 500.

Note: When you are finished do not close the window; you will lose the entries. Make sure you click on OK.

Save the project and output the project. The splash screen should look like the examples below with Skranji displayed as the main title font.

This brings us to the end of the Adding New Fonts post.

The next post shows how to implement the Mobile Landscape options.