From 7c3bb175d9f95808f3b894bdddfcea3348d9dedf Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 24 Jul 2018 21:50:01 -0400 Subject: [PATCH] Added font-loading support for the pc-build. --- common/font.c | 20 ++++++++++++++++++-- pc_main/main.cpp | 3 +++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/common/font.c b/common/font.c index e108c58..adba38e 100644 --- a/common/font.c +++ b/common/font.c @@ -6,7 +6,7 @@ #ifdef __SWITCH__ #define FONT_FACES_MAX PlSharedFontType_Total #else -#define FONT_FACES_MAX 1 +#define FONT_FACES_MAX 2 #endif static FT_Error s_font_libret=1, s_font_facesret[FONT_FACES_MAX]; @@ -339,8 +339,24 @@ bool fontInitialize(void) } #endif + //These are loaded from "/fonts/.ttf", these are user-supplied. Ideally these should be from plu SharedFont. #ifndef __SWITCH__ - //TODO: How to handle this? Until this is impl'd no font will be displayed for pc-build. + char fontpath[PATH_MAX+1]; + + for (i=0; i