SDLPP TextRenderer: change font size based on rectangle height

This commit is contained in:
2020-12-18 15:10:13 +01:00
parent 57143262ac
commit 7267cb7b9a
2 changed files with 14 additions and 7 deletions
+3 -3
View File
@@ -17,14 +17,14 @@ public:
std::shared_ptr< Renderer > &r, Font &font,
const std::string &text, const std::string &color = "FFFFFF",
const std::string &outline_color = "000000",
int outline_size = -1, int flags = SDLPP_TEXT_CENTER );
double outline_size = -1, int flags = SDLPP_TEXT_CENTER );
void setText( Font &font, const std::string &text,
const std::string &color = "FFFFFF",
const std::string &outline_color = "000000",
int outline_size = -1 );
double outline_size = -1 );
void setTextColor( Font &font, const std::string &color = "FFFFFF",
const std::string &outline_color = "000000",
int outline_size = -1 );
double outline_size = -1 );
void changeText( const std::string &text );
void setFlags( int flags );
virtual void render() override;