@@ -44,11 +44,11 @@ class Font : public ::Font {
4444 set (other);
4545
4646 other.baseSize = 0 ;
47- other.charsCount = 0 ;
48- other.charsPadding = 0 ;
47+ other.glyphCount = 0 ;
48+ other.glyphPadding = 0 ;
4949 other.texture = { 0 };
5050 other.recs = nullptr ;
51- other.chars = nullptr ;
51+ other.glyphs = nullptr ;
5252 }
5353
5454 ~Font () {
@@ -60,11 +60,11 @@ class Font : public ::Font {
6060 }
6161
6262 GETTERSETTER (int , BaseSize, baseSize)
63- GETTERSETTER (int , CharsCount, charsCount )
64- GETTERSETTER (int , CharsPadding, charsPadding )
63+ GETTERSETTER (int , GlyphCount, glyphCount )
64+ GETTERSETTER (int , GlyphPadding, glyphPadding )
6565 GETTERSETTER (::Texture2D, Texture, texture)
6666 GETTERSETTER (::Rectangle*, Recs, recs)
67- GETTERSETTER (::CharInfo *, Chars, chars )
67+ GETTERSETTER (::GlyphInfo *, Glyphs, glyphs )
6868
6969 Font& operator =(const ::Font& font) {
7070 set (font);
@@ -82,11 +82,11 @@ class Font : public ::Font {
8282 set (other);
8383
8484 other.baseSize = 0 ;
85- other.charsCount = 0 ;
86- other.charsPadding = 0 ;
85+ other.glyphCount = 0 ;
86+ other.glyphPadding = 0 ;
8787 other.texture = { 0 };
8888 other.recs = nullptr ;
89- other.chars = nullptr ;
89+ other.glyphs = nullptr ;
9090
9191 return *this ;
9292 }
@@ -100,20 +100,15 @@ class Font : public ::Font {
100100 return *this ;
101101 }
102102
103- inline Font& DrawText (const std::string& text, ::Rectangle rec, float fontSize, float spacing,
104- bool wordWrap = false , ::Color tint = WHITE) {
105- ::DrawTextRec (*this , text.c_str(), rec, fontSize, spacing, wordWrap, tint);
106- return *this ;
107- }
108-
109- /* *
110- * Draw text using font inside rectangle limits with support for text selection.
111- */
112- inline Font& DrawText (const std::string& text, ::Rectangle rec, float fontSize, float spacing,
113- bool wordWrap, ::Color tint, int selectStart, int selectLength, ::Color selectText,
114- ::Color selectBack) {
115- ::DrawTextRecEx (*this , text.c_str(), rec, fontSize, spacing, wordWrap, tint,
116- selectStart, selectLength, selectText, selectBack);
103+ inline Font& DrawText (
104+ const std::string& text,
105+ ::Vector2 position,
106+ ::Vector2 origin,
107+ float rotation,
108+ float fontSize,
109+ float spacing,
110+ ::Color tint = WHITE) {
111+ ::DrawTextPro (*this , text.c_str(), position, origin, rotation, fontSize, spacing, tint);
117112 return *this ;
118113 }
119114
@@ -153,11 +148,11 @@ class Font : public ::Font {
153148 private:
154149 void set (const ::Font& font) {
155150 baseSize = font.baseSize ;
156- charsCount = font.charsCount ;
157- charsPadding = font.charsPadding ;
151+ glyphCount = font.glyphCount ;
152+ glyphPadding = font.glyphPadding ;
158153 texture = font.texture ;
159154 recs = font.recs ;
160- chars = font.chars ;
155+ glyphs = font.glyphs ;
161156 }
162157};
163158} // namespace raylib
0 commit comments