shithub: cstory

ref: 7c4a2b5caa3a74a6aa8b8ebc03a0c9fa428d4b2d
dir: /src/Font.h/

View raw version
#pragma once

#include <stddef.h>

#include "Backends/Rendering.h"

typedef struct FontObject FontObject;

FontObject* LoadFontFromData(const unsigned char *data, size_t data_size, unsigned int cell_width, unsigned int cell_height);
FontObject* LoadFont(const char *font_filename, unsigned int cell_width, unsigned int cell_height);
void DrawText(FontObject *font_object, RenderBackend_Surface *surface, int x, int y, unsigned long colour, const char *string);
void UnloadFont(FontObject *font_object);