Improve handling of font family name, move AssetHelper.processLibraries and fix a couple colors

This commit is contained in:
Joshua Granick
2014-10-22 21:40:38 -07:00
parent 33d25eaf16
commit 58e70d4b76
4 changed files with 40 additions and 44 deletions

View File

@@ -295,11 +295,11 @@ class FlashHelper {
// More code ripped off from "samhaxe"
var src = name;
var font_name = Path.withoutExtension (name);
//var font_name = Path.withoutExtension (name);
var face = new Font (src);
var font = face.decompose ();
font_name = font.family_name;
var font_name = font.family_name;
var glyphs = new Array <Font2GlyphData> ();
var glyph_layout = new Array <FontLayoutGlyphData> ();
@@ -316,7 +316,7 @@ class FlashHelper {
var shapeRecords = new Array <ShapeRecord> ();
var i:Int = 0;
var styleChanged:Bool = false;
while (i < native_glyph.points.length) {
var type = native_glyph.points[i++];