fix font_loader.h

This commit is contained in:
scawful
2024-08-07 15:19:13 -04:00
parent 08c19f99a1
commit 69f1286f2b

View File

@@ -2,8 +2,6 @@
#ifndef FONTLOADER_H
#define FONTLOADER_H
#include "TargetConditionals.h"
#ifdef _WIN32
#include <Windows.h>
// Windows specific function declaration for loading system fonts into ImGui
@@ -11,16 +9,22 @@ int CALLBACK EnumFontFamExProc(const LOGFONT* lpelfe, const TEXTMETRIC* lpntme,
DWORD FontType, LPARAM lParam);
#elif __APPLE__
#ifdef TARGET_OS_MAC
#include "TargetConditionals.h"
#if TARGET_OS_MAC == 1
void LoadSystemFonts();
#elif TARGET_OS_IPHONE
#elif TARGET_OS_IPHONE == 1
void LoadSystemFonts();
#endif
#elif __linux__
// TODO: Implement Linux specific function declaration for loading system fonts
#endif
#endif // FONTLOADER_H