From 0d0c52eff79b3bba9aaf473249176e9396dad4b3 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 30 Dec 2014 11:01:13 -0800 Subject: [PATCH] Use proper fontName for embedded OpenFL/HTML5 fonts (closes #280) --- templates/haxe/DefaultAssetLibrary.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/haxe/DefaultAssetLibrary.hx b/templates/haxe/DefaultAssetLibrary.hx index ed0d574ec..7998f4c6c 100644 --- a/templates/haxe/DefaultAssetLibrary.hx +++ b/templates/haxe/DefaultAssetLibrary.hx @@ -652,7 +652,7 @@ class DefaultAssetLibrary extends AssetLibrary { #elseif html5 #if openfl -::foreach assets::::if (type == "font")::@:keep #if display private #end class __ASSET__::flatName:: extends openfl.text.Font { public function new () { super (); fontName = "::id::"; } } ::end:: +::foreach assets::::if (type == "font")::@:keep #if display private #end class __ASSET__::flatName:: extends openfl.text.Font { public function new () { super (); fontName = "::fontName::"; } } ::end:: ::end:: #end