Font embed fix
This commit is contained in:
@@ -1432,6 +1432,22 @@ class Assets {
|
|||||||
var position = Context.currentPos();
|
var position = Context.currentPos();
|
||||||
var fields = Context.getBuildFields();
|
var fields = Context.getBuildFields();
|
||||||
|
|
||||||
|
if (Context.defined ("openfl")) {
|
||||||
|
|
||||||
|
var searchTypes = classType;
|
||||||
|
|
||||||
|
while (searchTypes.superClass != null) {
|
||||||
|
|
||||||
|
if (searchTypes.pack.length == 2 && searchTypes.pack[0] == "openfl" && searchTypes.pack[1] == "text" && searchTypes.name == "Font") {
|
||||||
|
|
||||||
|
return fields;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
var path = "";
|
var path = "";
|
||||||
var glyphs = "32-255";
|
var glyphs = "32-255";
|
||||||
|
|
||||||
@@ -1446,8 +1462,11 @@ class Assets {
|
|||||||
case EConst(CString(filePath)):
|
case EConst(CString(filePath)):
|
||||||
|
|
||||||
path = filePath;
|
path = filePath;
|
||||||
|
|
||||||
if (!sys.FileSystem.exists(filePath)) {
|
if (!sys.FileSystem.exists(filePath)) {
|
||||||
|
|
||||||
path = Context.resolvePath (filePath);
|
path = Context.resolvePath (filePath);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user