From f96ee17823f0fa4c613a3f5a6f32d597a96f8449 Mon Sep 17 00:00:00 2001 From: meowtech Date: Fri, 8 May 2026 22:25:50 +0300 Subject: [PATCH] fooonts :3 --- src/font.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/font.cpp b/src/font.cpp index b619f15..37f9c00 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -82,7 +82,7 @@ SharedFontState::~SharedFontState(){ } void SharedFontState::initFontSetCB(SDL_IOStream* &ops, const std::string &filename){ - TTF_Font *font = TTF_OpenFontIO(ops, false, 0); + TTF_Font *font = TTF_OpenFontIO(ops, false, 16); if (!font) return; @@ -101,6 +101,9 @@ void SharedFontState::initFontSetCB(SDL_IOStream* &ops, const std::string &filen } TTF_Font *SharedFontState::getFont(std::string family, int size){ + if (family.empty()) + family = "Terminus (TTF)"; // terminus hardcoded :3c + /* Check for substitutions */ if (p->subs.contains(family)) family = p->subs[family]; @@ -131,7 +134,7 @@ TTF_Font *SharedFontState::getFont(std::string family, int size){ ? req.regular.c_str() : req.other.c_str(); //ops = SDL_OpenIO(); - SDL_IOStream* ops; + // SDL_IOStream* ops; shState->fileSystem().openReadRaw(ops, path); }