Can import ttc/otf fonts
This commit is contained in:
@@ -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"))) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user