aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLFontContext.h
blob: cb3ca9de8a269133d225b75acfd296560ffc2eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#include <SDL2/SDL_ttf.h>
#include <fontconfig/fontconfig.h>
#include <memory>

#include "../api/Asset.h"

namespace crepe {
class SDLFontContext {
public:
	SDLFontContext();
	~SDLFontContext();
	SDLFontContext(const SDLFontContext &) = delete;
	SDLFontContext(SDLFontContext &&) = delete;
	SDLFontContext & operator=(const SDLFontContext &) = delete;
	SDLFontContext & operator=(SDLFontContext &&) = delete;
	/**
		 * 
		 * \brief Facade function to convert a font_family into an asset.
		 * 
		 * This function uses the FontConfig library to convert a font family name (Arial, Inter, Helvetica) and converts it to the font source path.
		 * 
		 * \param font_family Name of the font family name.
		 */
	Asset get_font_asset(const std::string font_family);

private:
};

} // namespace crepe