Font using Base64

Hello, is there a way to have a specific font using a Base64 data string. I need to build a game without any external resources. I was able to make it work with audio and images but I was wondering if it is possible with fonts.

Thanks! :slight_smile:

Hi.

Check this link regarding using a base64 font as texture, may be useful

Hope it helps.

Thanks!
However, the issue here is that I simply want to change the font-family of a TextBlock in my GUI. Im not using CSS.

GUI uses HTML under the hood so adding fonts will require CSS :slight_smile: This playground might be useful too: font test | Babylon.js Playground (babylonjs.com) (from FontFamily for TextBlock in AdvancedDynamicTexture - #8 by Blax)