|
1 | | -/* |
2 | | -* LICENSE: zlib/libpng |
3 | | -* |
4 | | -* raylib-cpp is licensed under an unmodified zlib/libpng license, which is an OSI-certified, |
5 | | -* BSD-like license that allows static linking with closed source software: |
6 | | -* |
7 | | -* Copyright (c) 2020 Rob Loach (@RobLoach) |
8 | | -* |
9 | | -* This software is provided "as-is", without any express or implied warranty. In no event |
10 | | -* will the authors be held liable for any damages arising from the use of this software. |
11 | | -* |
12 | | -* Permission is granted to anyone to use this software for any purpose, including commercial |
13 | | -* applications, and to alter it and redistribute it freely, subject to the following restrictions: |
14 | | -* |
15 | | -* 1. The origin of this software must not be misrepresented; you must not claim that you |
16 | | -* wrote the original software. If you use this software in a product, an acknowledgment |
17 | | -* in the product documentation would be appreciated but is not required. |
18 | | -* |
19 | | -* 2. Altered source versions must be plainly marked as such, and must not be misrepresented |
20 | | -* as being the original software. |
21 | | -* |
22 | | -* 3. This notice may not be removed or altered from any source distribution. |
23 | | -*/ |
24 | | - |
25 | 1 | #ifndef RAYLIB_CPP_INCLUDE_FONT_HPP_ |
26 | 2 | #define RAYLIB_CPP_INCLUDE_FONT_HPP_ |
27 | 3 |
|
|
31 | 7 | #include "./raylib-cpp-utils.hpp" |
32 | 8 |
|
33 | 9 | namespace raylib { |
| 10 | +/** |
| 11 | + * Font type, includes texture and charSet array data |
| 12 | + */ |
34 | 13 | class Font : public ::Font { |
35 | 14 | public: |
36 | 15 | Font() { |
@@ -138,7 +117,7 @@ class Font : public ::Font { |
138 | 117 | return ::ImageTextEx(*this, text.c_str(), fontSize, spacing, tint); |
139 | 118 | } |
140 | 119 |
|
141 | | - protected: |
| 120 | + private: |
142 | 121 | void set(const ::Font& font) { |
143 | 122 | baseSize = font.baseSize; |
144 | 123 | charsCount = font.charsCount; |
|
0 commit comments