changed node font to Inter
This commit is contained in:
+4
-1
@@ -6,6 +6,7 @@
|
||||
#include "raygui/raygui.h"
|
||||
|
||||
#include "datatypes.h"
|
||||
#include "vmath.h"
|
||||
|
||||
#include <memory>
|
||||
#include <ranges>
|
||||
@@ -14,6 +15,7 @@
|
||||
namespace VISEQ::APP::UI{
|
||||
void AppUI::init(){
|
||||
GuiLoadStyleDark();
|
||||
inter = LoadFontEx("resources/fonts/Inter_28pt-Bold.ttf", 96, 0, 250);
|
||||
}
|
||||
|
||||
void AppUI::drawSideBar(){
|
||||
@@ -105,7 +107,8 @@ namespace VISEQ::APP::UI{
|
||||
|
||||
void AppUI::DrawCenteredText(std::string text, Vec2Df position, int size, Color color){
|
||||
float offset = MeasureText(text.c_str(), size);
|
||||
DrawText(text.c_str(), position.x-offset/2.0f, position.y-(float)size/2.0f+1, size, color );
|
||||
//DrawText(text.c_str(), position.x-offset/2.0f, position.y-(float)size/2.0f+1, size, color );
|
||||
DrawTextEx(inter, text.c_str(), Vec2Df(position.x-offset/2.0f, position.y-(float)size/2.0f+1), size, 2.0f, color);
|
||||
}
|
||||
|
||||
void AppUI::drawContextMenu(Camera2D camera){
|
||||
|
||||
Reference in New Issue
Block a user