RobLoach / raylib-libretro

:space_invader: libretro frontend using raylib.
zlib License
26 stars 6 forks source link

GUI Font #34

Open RobLoach opened 4 years ago

RobLoach commented 4 years ago

Load the Cyber raygui font. see if there's a way to include the font in the binary.

raysan5 commented 4 years ago

Here it is the portable style including the font: style_cyber.zip

To use it on your code:

#define RAYGUI_IMPLEMENTATION
#define RAYGUI_SUPPORT_ICONS
#include "raygui.h"                     // Required for: IMGUI controls

#undef RAYGUI_IMPLEMENTATION            // Avoid including raygui implementation again
#undef RICONS_IMPLEMENTATION            // Avoid including raygui icons data again

#include "style_cyber.h"                // raygui style: cyber

Call on init:

GuiLoadStyleCyber();