Restore Flash font embedding

This commit is contained in:
Joshua Granick
2014-10-14 12:46:31 -07:00
parent 1dbcc45890
commit 79082949a6
5 changed files with 587 additions and 195 deletions

View File

@@ -12,6 +12,7 @@ import haxe.io.Bytes;
import haxe.io.Path;
import helpers.LogHelper;
import helpers.ProcessHelper;
import lime.graphics.Font;
import project.Asset;
import project.AssetEncoding;
import project.AssetType;
@@ -295,10 +296,9 @@ class FlashHelper {
var src = name;
var font_name = Path.withoutExtension (name);
return false;
//var font = Font.load (src);
#if false
var face = new Font (src);
var font = face.decompose ();
var glyphs = new Array <Font2GlyphData> ();
var glyph_layout = new Array <FontLayoutGlyphData> ();
@@ -418,8 +418,6 @@ class FlashHelper {
}
})) );
#end
} else {
var bytes:Bytes = null;