Auto download cjk font

This commit is contained in:
KOGA Mitsuhiro
2020-07-14 04:18:25 +09:00
parent 3fc1275ba7
commit cc6594f79a
+5 -1
View File
@@ -85,7 +85,11 @@ class Translator {
if (cjk) {
kha.graphics2.Graphics.fontGlyphs.sort(Reflect.compare);
if (!File.exists(Path.data() + Path.sep + "font_cjk.ttc")) {
var cjkFontPath = Path.data() + Path.sep + "font_cjk.ttc";
if (!File.exists(cjkFontPath)) {
File.download("https://github.com/armory3d/armorpaint/raw/master/Assets/fonts/font_cjk.ttc", cjkFontPath);
}
if (!File.exists(cjkFontPath)) {
translations.clear();
return;
}