Break out default font

This commit is contained in:
=
2024-01-28 21:07:18 +01:00
parent 72ea50db30
commit d4ec09a8fb
4 changed files with 52 additions and 19 deletions

16
src/defaultfont.h Normal file
View File

@@ -0,0 +1,16 @@
//
// Created by love on 2024-01-24.
//
#pragma once
#if defined(_WIN32) || defined(_WIN64)
const char* defaultFontPath = "C:\\Windows\\Fonts\\Arial.ttf";
#elif defined(__linux__)
const char *defaultFontPath = "/usr/share/fonts/truetype/DejaVuSans-Bold.ttf";
#elif defined(__APPLE__) || defined(__MACH__)
const char *defaultFontPath = "/System/Library/Fonts/Supplemental/Arial.ttf";
#else
const char* defaultFontPath = nullptr;
#endif