package;
import openfl.display.Sprite;
import openfl.Assets;
import openfl.media.Sound;
class Main extends Sprite {
public function new () {
super ();
Assets.loadLibrary ("myswf", function (_) {
var clip = Assets.getMovieClip ("myswf:");
addChild (clip);
});
}
}
package;
import openfl.display.Sprite;
import openfl.Assets;
import openfl.media.Sound;
class Main extends Sprite {
public function new () {
super ();
Assets.loadLibrary ("myswf", function (_) {
var clip = Assets.getMovieClip ("myswf:");
addChild (clip);
});
}
}
You currently need to embed the same fonts you used in your SWF separately in your HTML5 projects. Does the text appear in the wrong font, or not at all?
It is very difficult to tell without seeing your project, but the OpenFL SWF support does support text in general. I am not sure why your text does not seem to be appearing. We should support static text as drawn vector shapes, and dynamic text should work at runtime, though it would require that your font is embedded separately (and matches the name exactly) to link up with your desired font, and not use _serif