mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
feat(Fonts): Added Storopia font
This commit is contained in:
parent
6c622152eb
commit
44bfa8fceb
@ -1,4 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include <cstdint>
|
|
||||||
|
|
||||||
extern const std::uint8_t font_rubik[140732];
|
|
4
BigBaseV2/src/fonts/fonts.hpp
Normal file
4
BigBaseV2/src/fonts/fonts.hpp
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
extern const unsigned char font_rubik[140732];
|
||||||
|
extern const unsigned char font_storopia[89888];
|
@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#include "fonts/fonts.hpp"
|
||||||
#include "fonts.hpp"
|
|
||||||
|
|
||||||
const std::uint8_t font_rubik[140732]
|
const std::uint8_t font_rubik[140732]
|
||||||
{
|
{
|
||||||
@ -11731,4 +11730,4 @@ const std::uint8_t font_rubik[140732]
|
|||||||
0x05, 0x1a, 0x07, 0x05, 0x0c, 0x2a, 0xb8, 0x01, 0xff, 0x85, 0xb0, 0x04,
|
0x05, 0x1a, 0x07, 0x05, 0x0c, 0x2a, 0xb8, 0x01, 0xff, 0x85, 0xb0, 0x04,
|
||||||
0x8d, 0xb1, 0x02, 0x00, 0x44, 0xb3, 0x05, 0x64, 0x06, 0x00, 0x44, 0x44,
|
0x8d, 0xb1, 0x02, 0x00, 0x44, 0xb3, 0x05, 0x64, 0x06, 0x00, 0x44, 0x44,
|
||||||
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
|
0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
7496
BigBaseV2/src/fonts/storopia.cpp
Normal file
7496
BigBaseV2/src/fonts/storopia.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include "fonts.hpp"
|
#include "fonts/fonts.hpp"
|
||||||
#include "logger.hpp"
|
#include "logger.hpp"
|
||||||
#include "gui.hpp"
|
#include "gui.hpp"
|
||||||
#include "pointers.hpp"
|
#include "pointers.hpp"
|
||||||
@ -51,9 +51,10 @@ namespace big
|
|||||||
|
|
||||||
ImFontConfig font_cfg{};
|
ImFontConfig font_cfg{};
|
||||||
font_cfg.FontDataOwnedByAtlas = false;
|
font_cfg.FontDataOwnedByAtlas = false;
|
||||||
std::strcpy(font_cfg.Name, "Rubik");
|
std::strcpy(font_cfg.Name, "Storopia");
|
||||||
|
|
||||||
m_font = ImGui::GetIO().Fonts->AddFontFromMemoryTTF(const_cast<std::uint8_t*>(font_rubik), sizeof(font_rubik), 20.f, &font_cfg);
|
m_font = ImGui::GetIO().Fonts->AddFontFromMemoryTTF(const_cast<std::uint8_t*>(font_storopia), sizeof(font_storopia), 20.f, &font_cfg);
|
||||||
|
//m_font = ImGui::GetIO().Fonts->AddFontFromMemoryTTF(const_cast<std::uint8_t*>(font_rubik), sizeof(font_rubik), 20.f, &font_cfg);
|
||||||
m_monospace_font = ImGui::GetIO().Fonts->AddFontDefault();
|
m_monospace_font = ImGui::GetIO().Fonts->AddFontDefault();
|
||||||
|
|
||||||
g_gui.dx_init();
|
g_gui.dx_init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user