Hi,
I have read quite a few posts on the subject, so I know this has been mentioned a lot, but I didn't find a good solution for this.
I'm loading Google webfont from within the game using WebFontConfig:
WebFontConfig = {
google: {
families: ['Roboto']
}
};
and:
game.load.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
I can set a text to use the google font (Roboto, for example) without a problem, but I can't set its weight. I believe it defaults to 400.
I know that using .fontWeight won't work, so I tried as someone offered in another post:
{font: '100 20px Roboto'}
but it won't work either (it actually resets the text font to the default browser font).
I also tried loading specifically Roboto:100,400 in the WebFontConfig but that doesn't work either.
Any suggestions?