You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm at my first crack with Flambe, and following around with a tutorial. The tutorial wanted to use a bitmap font, but the tutorial also didn't provide any of it's assets files. Fine, I grabbed one that I used with Starling.
But it didn't work. I kept on getting an error in the JS saying that the glyph didn't exist. I did some digging in Font.hx and I found the issue.
For the character code it runs pair.getInt();
And through debugging I found that it was trying to convert "71" into an integer. This is including the quotation marks. So I tweaked it to get rid of the quotation marks, and now it works.
public function getInt () :Int {
//return Std.parseInt(_value);
return Std.parseInt( _value.substr(1, _value.length-2) );
}
Hopefully this helps someone else.
The text was updated successfully, but these errors were encountered:
So I'm at my first crack with Flambe, and following around with a tutorial. The tutorial wanted to use a bitmap font, but the tutorial also didn't provide any of it's assets files. Fine, I grabbed one that I used with Starling.
But it didn't work. I kept on getting an error in the JS saying that the glyph didn't exist. I did some digging in Font.hx and I found the issue.
For the character code it runs pair.getInt();
And through debugging I found that it was trying to convert "71" into an integer. This is including the quotation marks. So I tweaked it to get rid of the quotation marks, and now it works.
public function getInt () :Int {
//return Std.parseInt(_value);
return Std.parseInt( _value.substr(1, _value.length-2) );
}
Hopefully this helps someone else.
The text was updated successfully, but these errors were encountered: