fixed fonts not being loaded on export

This commit is contained in:
JHDev2006
2025-10-18 13:26:43 +01:00
parent e45e7bfce3
commit 0fd33d6893
16 changed files with 245 additions and 207 deletions

View File

@@ -163,8 +163,11 @@ func get_resource(json_file: JSON) -> Resource:
ResourceMode.RAW:
pass
ResourceMode.FONT:
resource = FontFile.new()
resource.load_bitmap_font(source_resource_path)
if source_resource_path.contains(Global.get_config_path()):
resource = FontFile.new()
resource.load_bitmap_font(source_resource_path)
else:
resource = load(source_resource_path)
resource.set_meta("base_path", source_resource_path)
if cache.has(json_file.resource_path) == false and use_cache and not is_random:
cache[json_file.resource_path] = resource