Chronos 0.0
A advanced 2D rendering and animation system
Loading...
Searching...
No Matches
fontTypes.hpp File Reference

Defines all thes structs for all the font types and their sizes. More...

#include "multiFontInclude.hpp"
#include "text.hpp"
Include dependency graph for fontTypes.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Chronos
 
namespace  Chronos::Engine
 
namespace  Chronos::Engine::FontStructs
 

Macros

#define FONT_STRUCT(type, size)
 
#define GEN_FONT_STRUCTS(type)
 

Detailed Description

Defines all thes structs for all the font types and their sizes.

Using macros, this includes the structs for all the font types and their sizes. This is so that the user can use any font type and size they want.

Font sizes range from 6 to 50.

The font types are:

  • arial
  • arial_bold
  • consolas
  • consolas_bold
  • courier
  • courier_bold
  • times
  • times_bold

Definition in file fontTypes.hpp.

Macro Definition Documentation

◆ FONT_STRUCT

#define FONT_STRUCT (   type,
  size 
)
Value:
FontTypes type##_##size \
{ \
STB_FONT_##type##_##size##_latin1_BITMAP_WIDTH, \
STB_FONT_##type##_##size##_latin1_BITMAP_HEIGHT, \
stb_font_##type##_##size##_latin1, \
STB_FONT_##type##_##size##_latin1_FIRST_CHAR, \
STB_FONT_##type##_##size##_latin1_NUM_CHARS, \
}

Definition at line 47 of file fontTypes.hpp.

49 { \
50 STB_FONT_##type##_##size##_latin1_BITMAP_WIDTH, \
51 STB_FONT_##type##_##size##_latin1_BITMAP_HEIGHT, \
52 stb_font_##type##_##size##_latin1, \
53 STB_FONT_##type##_##size##_latin1_FIRST_CHAR, \
54 STB_FONT_##type##_##size##_latin1_NUM_CHARS, \
55 }

◆ GEN_FONT_STRUCTS

#define GEN_FONT_STRUCTS (   type)

Definition at line 57 of file fontTypes.hpp.