diff --git a/include/eepp/graphics/text.hpp b/include/eepp/graphics/text.hpp index d7498aa21..a86220435 100644 --- a/include/eepp/graphics/text.hpp +++ b/include/eepp/graphics/text.hpp @@ -99,9 +99,6 @@ class EE_API Text { /** @return The number of lines that the cached text contains */ const int& getNumLines(); - /** Force to cache the width of the current text */ - void cacheWidth(); - void setStyleConfig( const FontStyleConfig& styleConfig ); protected: void ensureGeometryUpdate(); @@ -133,6 +130,9 @@ class EE_API Text { std::vector mOutlineVertices; std::vector mOutlineColors; std::vector mLinesWidth; + + /** Force to cache the width of the current text */ + void cacheWidth(); }; }}