KDE/app/src/main/cpp/Font.h
Kevin Trogant f6d171a685 Try to calculate required font atlas bitmap size
Currently results in HUGE textures
2023-06-02 11:14:34 +02:00

27 lines
420 B
C

#ifndef KRIMI_DINNER_ENGINE_FONT_H
#define KRIMI_DINNER_ENGINE_FONT_H
#include "stb_truetype.h"
#ifdef _WIN32
#include "glad.h"
#else
#include <GLES3/gl3.h>
#endif
/// Data that defines a font
struct FontData
{
stbtt_packedchar char_data[226];
float char_height;
float scale_factor;
int ascent;
int descent;
int line_gap;
float baseline_adjust;
size_t bitmap_size;
};
#endif