fix font_loader.h
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
#ifndef FONTLOADER_H
|
#ifndef FONTLOADER_H
|
||||||
#define FONTLOADER_H
|
#define FONTLOADER_H
|
||||||
|
|
||||||
#include "TargetConditionals.h"
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
// Windows specific function declaration for loading system fonts into ImGui
|
// 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);
|
DWORD FontType, LPARAM lParam);
|
||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
|
|
||||||
#ifdef TARGET_OS_MAC
|
#include "TargetConditionals.h"
|
||||||
|
|
||||||
|
#if TARGET_OS_MAC == 1
|
||||||
|
|
||||||
void LoadSystemFonts();
|
void LoadSystemFonts();
|
||||||
|
|
||||||
#elif TARGET_OS_IPHONE
|
#elif TARGET_OS_IPHONE == 1
|
||||||
|
|
||||||
void LoadSystemFonts();
|
void LoadSystemFonts();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#elif __linux__
|
||||||
|
|
||||||
|
// TODO: Implement Linux specific function declaration for loading system fonts
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // FONTLOADER_H
|
#endif // FONTLOADER_H
|
||||||
|
|||||||
Reference in New Issue
Block a user