Beispiel #1
0
        protected override void OnLoad(EventArgs e)
        {
            CursorVisible = true;
            GL.ClearColor(0.2f, 0.2f, 0.2f, 1);

            Logger.Log()(LogLevel.INFO, "Initialized LSDView");

            var io = ImGui.GetIO();

            ImFontConfig cfg = new ImFontConfig
            {
                MergeMode        = 1,
                PixelSnapH       = 1,
                GlyphOffset      = new Vector2(1, 1),
                GlyphMinAdvanceX = 20,
            };

            ImGuiRenderer.AddFontFromFileTTF("Fonts/fa-solid-900.ttf", 16, cfg,
                                             new[] { (char)FontAwesome5.IconMin, (char)FontAwesome5.IconMax, (char)0 });
        }
        protected override void OnLoad(EventArgs e)
        {
            CursorVisible = true;
            GL.ClearColor(0.2f, 0.2f, 0.2f, 1);

            Logger.Log()(LogLevel.INFO, "Initialized JsonAnything");

            IO io = ImGui.GetIO();

            ImGui.GetIO().FontAtlas.AddDefaultFont();

            FontConfig cfg = new FontConfig
            {
                MergeMode  = 1,
                PixelSnapH = 1
            };

            ImGuiRenderer.AddFontFromFileTTF("fonts/fa-solid-900.ttf", 16, cfg,
                                             new[] { (char)FontAwesome5.IconMin, (char)FontAwesome5.IconMax, (char)0 });
        }