mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add vector fonts support
This commit is contained in:
parent
2c81344638
commit
11c3f1c5eb
10 changed files with 212 additions and 34 deletions
|
|
@ -1,5 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
class Font;
|
||||
|
||||
namespace vector_fonts {
|
||||
class FontFile {
|
||||
public:
|
||||
virtual ~FontFile() {}
|
||||
|
||||
virtual std::unique_ptr<Font> createInstance(int size) = 0;
|
||||
};
|
||||
|
||||
void initialize();
|
||||
void finalize();
|
||||
|
||||
std::unique_ptr<vector_fonts::FontFile> load_font(const std::string& filename);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue