Use proper fontName for embedded OpenFL/HTML5 fonts (closes #280)
This commit is contained in:
@@ -652,7 +652,7 @@ class DefaultAssetLibrary extends AssetLibrary {
|
|||||||
#elseif html5
|
#elseif html5
|
||||||
|
|
||||||
#if openfl
|
#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::
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user