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.hpp"
|
||||
#include "fonts/fonts.hpp"
|
||||
|
||||
const std::uint8_t font_rubik[140732]
|
||||
{
|
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 "fonts.hpp"
|
||||
#include "fonts/fonts.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "gui.hpp"
|
||||
#include "pointers.hpp"
|
||||
@ -51,9 +51,10 @@ namespace big
|
||||
|
||||
ImFontConfig font_cfg{};
|
||||
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();
|
||||
|
||||
g_gui.dx_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user