Can import ttc/otf fonts

This commit is contained in:
KOGA Mitsuhiro
2020-07-07 17:53:42 +09:00
parent 35f5d35f42
commit ebaffc09d0
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class TabFonts {
if (ui.tab(UISidebar.inst.htab2, tr("Fonts"))) {
ui.row([1 / 4, 1 / 4]);
if (ui.button(tr("Import"))) Project.importAsset("ttf");
if (ui.button(tr("Import"))) Project.importAsset("ttf,ttc,otf");
if (ui.isHovered) ui.tooltip(tr("Import font file") + ' (${Config.keymap.file_import_assets})');
if (ui.button(tr("2D View"))) {
+1 -1
View File
@@ -66,7 +66,7 @@ class UIMenu {
if (ui.button(" " + tr("Save As..."), Left, Config.keymap.file_save_as)) Project.projectSaveAs();
ui.fill(0, 0, sepw, 1, ui.t.ACCENT_SELECT_COL);
if (ui.button(" " + tr("Import Texture..."), Left, Config.keymap.file_import_assets)) Project.importAsset(Path.textureFormats.join(","));
if (ui.button(" " + tr("Import Font..."), Left)) Project.importAsset("ttf");
if (ui.button(" " + tr("Import Font..."), Left)) Project.importAsset("ttf,ttc,otf");
if (ui.button(" " + tr("Import Material..."), Left)) Project.importMaterial();
if (ui.button(" " + tr("Import Brush..."), Left)) Project.importBrush();
if (ui.button(" " + tr("Import Mesh..."), Left)) Project.importMesh();