1 | // LAF FreeType Wrapper |
2 | // Copyright (c) 2016-2017 David Capello |
3 | // |
4 | // This file is released under the terms of the MIT license. |
5 | // Read LICENSE.txt for more information. |
6 | |
7 | #ifndef FT_LIB_H_INCLUDED |
8 | #define FT_LIB_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include "base/disable_copying.h" |
12 | #include "ft/freetype_headers.h" |
13 | |
14 | #include <string> |
15 | |
16 | namespace ft { |
17 | |
18 | class Lib { |
19 | public: |
20 | Lib(); |
21 | ~Lib(); |
22 | |
23 | operator FT_Library() { return m_ft; } |
24 | |
25 | FT_Face open(const std::string& filename); |
26 | |
27 | private: |
28 | FT_Library m_ft; |
29 | |
30 | DISABLE_COPYING(Lib); |
31 | }; |
32 | |
33 | } // namespace ft |
34 | |
35 | #endif |
36 | |