i’m uing webfontloader for load 100,300,400 and 900 Londrina Solid font.
WebFont.load({
custom: {
families: [],
},
google: {
families: ["Londrina Solid:100", "Londrina Solid:300","Londrina Solid:400","Londrina Solid:900"]
},
active: () => {
// This is required for asnyc loading
this.ready = true;
}
});
and using below code for text
const text_1 = scene.add.text(-171, 142, "", {});
text_1.setOrigin(0.5, 0.5);
text_1.text = "Hello";
text_1.setStyle({ "align": "center", "color": "#000000ff", "fontFamily": "Londrina Solid", "fontSize": "32px" });
this.add(text_1);
How can i using 4 fontWeight of Londrina font on my projects?