Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Change Font ImGui

#pragma once

// Define these here or somewhere else to add fonts to your imgui app.
//#define IMGUIAL_FONTS_COUSINE_REGULAR
//#define IMGUIAL_FONTS_DROID_SANS
//#define IMGUIAL_FONTS_KARLA_REGULAR
//#define IMGUIAL_FONTS_PROGGY_TINY
//#define IMGUIAL_FONTS_FONT_AWESOME
//#define IMGUIAL_FONTS_MATERIAL_DESIGN
//#define IMGUIAL_FONTS_KENNEY_ICONS

#ifdef IMGUIAL_FONTS_FONT_AWESOME
#include "IconsFontAwesome_c.h"
#endif

#ifdef IMGUIAL_FONTS_MATERIAL_DESIGN
#include "IconsMaterialDesign_c.h"
#endif

#ifdef IMGUIAL_FONTS_KENNEY_ICONS
#include "IconsKenney_c.h"
#endif

namespace ImGuiAl
{
  namespace Fonts
  {
    enum Font
    {
      kCousineRegular,
      kDroidSans,
      kKarlaRegular,
      kProggyTiny,
      kFontAwesome,
      kMaterialDesign,
      kKenneyIcons
    };
    
    const void* GetCompressedData( Font font, int* size );
  }
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to input a file path in c++ 
Cpp :: c++ string not printing 
Cpp :: C++ 4.3.2 (gcc-4.3.2) sample 
Cpp :: frc limelight tracking 
Cpp :: C++ bool 
Cpp :: check if an item is in a vector c++ 
Cpp :: sum of 2 arrays c++ 
Cpp :: delete node in a linked list leetcode 
Cpp :: c++ compile to msi 
Cpp :: In every C++ program: 
Cpp :: how to declare a function in c++ header file 
Cpp :: c++ cout int 
Cpp :: subsequence 
Cpp :: palindrome no example 
Cpp :: C++ Area and Circumference of a Circle 
Cpp :: constructor overloading in c++ 
Cpp :: passare un array a una funzione 
Cpp :: read from standard input cpp 
Cpp :: qt graphics scene map cursor position 
C :: java.lang.SecurityException: Permission denied (missing INTERNET permission?) 
C :: dynamic 2d arr in c 
C :: shuffle function in c 
C :: curl authorization header 
C :: If statement that tests if a value is in range 
C :: factorial in c using recursion 
C :: c iterate string 
C :: c program to add two numbers 
C :: c program strtok use 
C :: goto statement in c 
C :: pyramid using c 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =