Skip to main content

initOnFontLoad

A option that can be used when you're using a custom font that should be loaded before initializing.
Enabling this option will make SignBoard to call init after when the font described in textOptions.font is loaded.

Test this page with enabling "Disable cache" option in your network tab of your DevTool.

// DefaultinitOnFontLoad: false,textOptions: {  font: "32pt Bungee"}
initOnFontLoad: true,textOptions: {  font: "32pt Bungee"}
// If you want to check specific character is loaded, by default it will check whether the character "a" is loadedinitOnFontLoad: [true, "c"],textOptions: {  font: "32pt Bungee"}