rendering improvements
This commit is contained in:
parent
789bb307d5
commit
7f46ac13fa
14 changed files with 296 additions and 179 deletions
|
|
@ -29,7 +29,7 @@ using namespace Crafter;
|
|||
|
||||
Font::Font(const std::filesystem::path& fontFilePath) {
|
||||
// 1. Load the font file into memory
|
||||
std::ifstream fontFile("inter.ttf", std::ios::binary | std::ios::ate);
|
||||
std::ifstream fontFile(fontFilePath, std::ios::binary | std::ios::ate);
|
||||
if (!fontFile.is_open()) {
|
||||
std::cerr << "Failed to open font file\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue