Adding simplistic font rendering for HTML5 and Flash

This commit is contained in:
Matt Tuttle
2014-07-13 22:16:15 -05:00
parent 6d7388212a
commit d5084081e2
3 changed files with 213 additions and 27 deletions

View File

@@ -610,8 +610,8 @@ class DefaultAssetLibrary extends AssetLibrary {
#elseif html5
//::foreach assets::::if (type == "font")::@:keep class __ASSET__::flatName:: extends openfl.text.Font { #if (!openfl_html5_dom) public function new () { super (); fontName = "::id::"; } #end }::end::
//::end::
::foreach assets::::if (type == "font")::@:keep class __ASSET__::flatName:: extends lime.graphics.Font { public function new () { super ("::id::"); } }::end::
::end::
#elseif (windows || mac || linux)
@@ -621,7 +621,8 @@ class DefaultAssetLibrary extends AssetLibrary {
//::elseif (type == "music")::@:sound("::sourcePath::") class __ASSET__::flatName:: extends openfl.media.Sound {}
//::elseif (type == "font")::@:font("::sourcePath::") class __ASSET__::flatName:: extends openfl.text.Font {}
//::else::@:file("::sourcePath::") class __ASSET__::flatName:: extends lime.utils.ByteArray {}
::end::::end::::end::::end::
//::end::::end::::end::
::end::
#end