linux 编译通过
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <Fostbite2D/core/types.h>
|
||||
#include <fostbite2D/core/types.h>
|
||||
#include <algorithm>
|
||||
#include <glm/vec4.hpp>
|
||||
|
||||
|
||||
@@ -49,7 +49,11 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
// 加载字体(使用系统默认字体或项目字体)
|
||||
#ifdef _WIN32
|
||||
std::string fontPath = "C:/Windows/Fonts/arial.ttf"; // Windows 系统字体
|
||||
#else
|
||||
std::string fontPath = "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"; // Linux 系统字体
|
||||
#endif
|
||||
FontAtlas *font = nullptr;
|
||||
|
||||
// 尝试加载字体
|
||||
|
||||
Reference in New Issue
Block a user