1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

use TTF_Font from SDL_ttf directly

This commit is contained in:
Andrey Filipenkov 2025-01-07 12:09:11 +03:00
parent 8406840f76
commit 3db1a01080
2 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,6 @@
#include "../../lib/filesystem/Filesystem.h"
#include "../../lib/texts/TextOperations.h"
#include <SDL_ttf.h>
std::pair<std::unique_ptr<ui8[]>, ui64> CTrueTypeFont::loadData(const JsonNode & config)
{
std::string filename = "Data/" + config["file"].String();

View File

@ -11,14 +11,14 @@
#include "../render/IFont.h"
#include <SDL_ttf.h>
VCMI_LIB_NAMESPACE_BEGIN
class JsonNode;
VCMI_LIB_NAMESPACE_END
class CBitmapFont;
using TTF_Font = struct _TTF_Font;
class CTrueTypeFont final : public IFont
{
const std::pair<std::unique_ptr<ui8[]>, ui64> data;