Skip to content

Commit

Permalink
Revert "Feature/its all about fonts"
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Jun 28, 2023
1 parent 775b0b4 commit 7f2b7e0
Show file tree
Hide file tree
Showing 30 changed files with 235 additions and 912 deletions.
16 changes: 2 additions & 14 deletions scripts/IconGlyphs/icons.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
-- Generated by https://github.com/Nats-ji/IconFontCppHeadersAndLuaTables for LuaJLT and Lua 5.3+
-- from https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/master/meta.json
-- for use with https://github.com/Templarian/MaterialDesign-Webfont/blob/master/fonts/materialdesignicons-webfont.ttf
local IconGlyphs = {}

IconGlyphs.icons = {
local IconGlyphs = {
AbTesting = "\u{f01c9}", -- U+F01C9 ab-testing, tags: Developer / Languages
Abacus = "\u{f16e0}", -- U+F16E0 abacus, tags: Math
AbjadArabic = "\u{f1328}", -- U+F1328 abjad-arabic, aliases: writing-system-arabic, tags: Alpha / Numeric
Expand Down Expand Up @@ -7101,14 +7099,4 @@ IconGlyphs.icons = {
ZodiacTaurus = "\u{f0a87}", -- U+F0A87 zodiac-taurus, aliases: horoscope-taurus
ZodiacVirgo = "\u{f0a88}", -- U+F0A88 zodiac-virgo, aliases: horoscope-virgo
}

IconGlyphs.metatable = {
__index = function(table, key)
AddTextGlyphs(IconGlyphs.icons[key])
return IconGlyphs.icons[key]
end
}

setmetatable(IconGlyphs, IconGlyphs.metatable)

return IconGlyphs
return IconGlyphs
10 changes: 2 additions & 8 deletions src/CET.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ LuaVM& CET::GetVM() noexcept
return m_vm;
}

Fonts& CET::GetFonts() noexcept
{
return m_fonts;
}

bool CET::IsRunning() noexcept
{
return s_isRunning;
Expand All @@ -75,9 +70,8 @@ CET::CET()
, m_persistentState(m_paths, m_options)
, m_bindings(m_paths, m_options)
, m_window(&m_bindings, &m_d3d12)
, m_fonts(m_options, m_paths)
, m_d3d12(m_window, m_paths, m_options, m_fonts)
, m_vm(m_paths, m_bindings, m_d3d12, m_fonts)
, m_d3d12(m_window, m_paths, m_options)
, m_vm(m_paths, m_bindings, m_d3d12)
, m_overlay(m_bindings, m_options, m_persistentState, m_vm)
{
m_vm.Initialize();
Expand Down
3 changes: 0 additions & 3 deletions src/CET.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "overlay/Overlay.h"
#include "scripting/LuaVM.h"
#include "common/CETTasks.h"
#include "Fonts.h"

struct CET
{
Expand All @@ -25,7 +24,6 @@ struct CET
VKBindings& GetBindings() noexcept;
Overlay& GetOverlay() noexcept;
LuaVM& GetVM() noexcept;
Fonts& GetFonts() noexcept;

static bool IsRunning() noexcept;

Expand All @@ -37,7 +35,6 @@ struct CET
PersistentState m_persistentState;
VKBindings m_bindings;
Window m_window;
Fonts m_fonts;
D3D12 m_d3d12;
LuaVM m_vm;
Overlay m_overlay;
Expand Down
Loading

0 comments on commit 7f2b7e0

Please sign in to comment.