aframe

AFrame font loads as blank blocks


Hey all I'm trying to load fonts from the AFrame Google Font repository. However, I'm getting blank blocks for the letters of my a-text:

enter image description here

Does anyone know why this is happening?


Solution

  • You need to set the material of the text to msdf, in order to use the Google fonts.

    Ex.

    <a-text material="msdf" value="Hello" font="assets/fonts/Raleway/Raleway-Regular.json"></a-text>