tvtoanitvn Posted July 27, 2018 Share Posted July 27, 2018 Set font not working. When I add group and children text using custom font, then font-family not working. my css file @font-face { font-family: FontTime; font-style: normal; font-stretch:normal; src: url(/src/contents/fonts/LBZ.ttf); } and css call <link href="/src/contents/site.css" rel="stylesheet" type="text/css" /> Link to comment Share on other sites More sharing options...
Marcobarroso Posted August 4, 2018 Share Posted August 4, 2018 Hi, Verify name the font in properties. Example: Font: luckiestguy.ttf Name: Luckiest Guy @font-face { font-family: 'Luckiest Guy'; src: url("../font/luckiestguy.ttf") format("opentype"); font-style: normal; } BR Marco Barroso tvtoanitvn 1 Link to comment Share on other sites More sharing options...
tvtoanitvn Posted August 6, 2018 Author Share Posted August 6, 2018 Thanks Mac Marco Barroso. I'm using setStyle and worked. When set style in game.add.text not working or incorrect. Link to comment Share on other sites More sharing options...
Recommended Posts