10#ifndef GUI_FONT_RESOURCE__H_
11#define GUI_FONT_RESOURCE__H_
42#define ENTRY_ENUM(a) -1
48#ifndef GUILIANI_GUILIANILIB
49#include "UserFontResource.h"
56#define ENTRY_ENUM(a) a,
61#define ENTRY(fnt, fnt_filename, fnt_size, fnt_style, fnt_permanent) fnt,
62#ifndef GUILIANI_GUILIANILIB
68 GUILIANI_INTERNAL_FNT = INT_MAX
75#define MAP_FNTID_TO_ARRAY(FNT_ID) (static_cast<eC_UInt>((FNT_ID-FNT_START_TAG)-1))
77#define UNMAP_FNTENTRY_TO_ARRAY(FNT_ENTRY) (static_cast<FontResource_t>(FNT_ENTRY+FNT_START_TAG+1))
#define FONT_TABLE
Font resources.
Definition: GUIFontResource.h:36
const int ciCalculatedFntStartTag
preprocessor generates for all entries of FONT_TABLE: -1 -1 -1..., resulting in a mathematical expres...
Definition: GUIFontResource.h:44
int static_assert_something[(DUMMY_FONT==0) ? 1 :-1]
Will throw compile error negative subscript if DUMMY_FONT is NOT 0!
Definition: GUIFontResource.h:72
const eC_UInt cuiNOFFontResources
Used to contain the highest index cuiNOFXXXClasses = MAP_PROPID_TO_ARRAY(NOF_XXXCLASSES);.
FontResource_t
List of font resource ids.
Definition: GUIFontResource.h:54